- Treat enums like enums and not values - Avoid invalid free, in case of
2008-03-07 Johan Dahlin <johan@gnome.org> * gtk/gtkbuilder.c: * gtk/gtkbuilderparser.c: * gtk/gtkbuilderprivate.h: * gtk/gtkiconfactory.c: * tests/buildertest.c: - Treat enums like enums and not values - Avoid invalid free, in case of more than two sources - Add better error messages - Add much improved tests (#520979, Christian Persch) svn path=/trunk/; revision=19732
This commit is contained in:

committed by
Johan Dahlin

parent
f55db27521
commit
424cc287f1
@ -915,9 +915,13 @@ text (GMarkupParseContext *context,
|
||||
|
||||
if (data->subparser && data->subparser->start)
|
||||
{
|
||||
GError *tmp_error = NULL;
|
||||
|
||||
if (data->subparser->parser->text)
|
||||
data->subparser->parser->text (context, text, text_len,
|
||||
data->subparser->data, error);
|
||||
data->subparser->data, &tmp_error);
|
||||
if (tmp_error)
|
||||
g_propagate_error (error, tmp_error);
|
||||
return;
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user