mirror of
https://gitlab.gnome.org/GNOME/gtk.git
synced 2024-12-27 06:00:22 +00:00
Fix a misleading condition
gcc5 rightfully complains about this condition being unclear.
This commit is contained in:
parent
f8961facb2
commit
0d57d21192
@ -947,23 +947,23 @@ subparser_end (GMarkupParseContext *context,
|
||||
if (data->subparser->parser->end_element)
|
||||
data->subparser->parser->end_element (context, element_name,
|
||||
data->subparser->data, error);
|
||||
|
||||
if (!strcmp (data->subparser->start, element_name) == 0)
|
||||
|
||||
if (strcmp (data->subparser->start, element_name) != 0)
|
||||
return;
|
||||
|
||||
|
||||
gtk_buildable_custom_tag_end (GTK_BUILDABLE (data->subparser->object),
|
||||
data->builder,
|
||||
data->subparser->child,
|
||||
element_name,
|
||||
data->subparser->data);
|
||||
g_free (data->subparser->parser);
|
||||
|
||||
|
||||
if (GTK_BUILDABLE_GET_IFACE (data->subparser->object)->custom_finished)
|
||||
data->custom_finalizers = g_slist_prepend (data->custom_finalizers,
|
||||
data->subparser);
|
||||
else
|
||||
free_subparser (data->subparser);
|
||||
|
||||
|
||||
data->subparser = NULL;
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user