Commit 11adc5a0 authored by Matthias Clasen's avatar Matthias Clasen
Browse files

Don't leak RequiresInfo when parsing GtkBuilder files

This fixes bug 579366.
parent c28fabe3
...@@ -974,10 +974,11 @@ end_element (GMarkupParseContext *context, ...@@ -974,10 +974,11 @@ end_element (GMarkupParseContext *context,
GTK_BUILDER_ERROR, GTK_BUILDER_ERROR,
GTK_BUILDER_ERROR_VERSION_MISMATCH, GTK_BUILDER_ERROR_VERSION_MISMATCH,
"%s: required %s version %d.%d, current version is %d.%d", "%s: required %s version %d.%d, current version is %d.%d",
data->filename, req_info->library, data->filename, req_info->library,
req_info->major, req_info->minor, req_info->major, req_info->minor,
GTK_MAJOR_VERSION, GTK_MINOR_VERSION); GTK_MAJOR_VERSION, GTK_MINOR_VERSION);
} }
_free_requires_info (req_info, NULL);
} }
else if (strcmp (element_name, "interface") == 0) else if (strcmp (element_name, "interface") == 0)
{ {
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment