diff options
author | Matthias Clasen <mclasen@redhat.com> | 2009-04-18 14:52:04 -0400 |
---|---|---|
committer | Matthias Clasen <mclasen@redhat.com> | 2009-05-03 23:32:33 -0400 |
commit | 6eb95098b1c43da144ca120191c3489966a54c76 (patch) | |
tree | f0f35e3690b38e44a8339991989ce70fe1ea9de1 /gtk | |
parent | 850965101f54667f9448193e333626fab8b4005b (diff) | |
download | gtk+-6eb95098b1c43da144ca120191c3489966a54c76.tar.gz |
Don't leak RequiresInfo when parsing GtkBuilder files
This fixes bug 579366.
Diffstat (limited to 'gtk')
-rw-r--r-- | gtk/gtkbuilderparser.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/gtk/gtkbuilderparser.c b/gtk/gtkbuilderparser.c index feda666c58..c5cb2d8938 100644 --- a/gtk/gtkbuilderparser.c +++ b/gtk/gtkbuilderparser.c @@ -974,10 +974,11 @@ end_element (GMarkupParseContext *context, GTK_BUILDER_ERROR, GTK_BUILDER_ERROR_VERSION_MISMATCH, "%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, GTK_MAJOR_VERSION, GTK_MINOR_VERSION); } + _free_requires_info (req_info, NULL); } else if (strcmp (element_name, "interface") == 0) { |