Handle misplaced property elements without asserting.

2007-11-09  Matthias Clasen  <mclasen@redhat.com>

        * gtk/gtkbuilderparser.c (parse_property): Handle misplaced
        property elements without asserting.


svn path=/trunk/; revision=18976
This commit is contained in:
Matthias Clasen 2007-11-10 02:36:56 +00:00 committed by Matthias Clasen
parent 50a766c95f
commit c3fcd42eda
2 changed files with 10 additions and 1 deletions

View File

@ -1,3 +1,8 @@
2007-11-09 Matthias Clasen <mclasen@redhat.com>
* gtk/gtkbuilderparser.c (parse_property): Handle misplaced
property elements without asserting.
2007-11-09 Kristian Rietveld <kris@imendio.com>
* gdk/gdkwindow.c (gdk_window_process_all_updates): guard for

View File

@ -379,7 +379,11 @@ parse_property (ParserData *data,
gboolean translatable = FALSE;
int i;
g_assert (data->stack != NULL);
if (data->stack == NULL)
{
error_invalid_tag (data, "property", NULL, error);
return;
}
for (i = 0; names[i] != NULL; i++)
{