diff options
author | Paolo Borelli <pborelli@gnome.org> | 2009-08-14 11:33:47 +0200 |
---|---|---|
committer | Paolo Borelli <pborelli@gnome.org> | 2009-08-14 15:56:44 +0200 |
commit | 03018f1d012a167345aab66a259d236c450afe3a (patch) | |
tree | 3b3ca79261d48c2225f9508a2433daca9525dfa1 /gtk/gtkbuilderparser.c | |
parent | 0696bc8e86df92426d68c5feedeb17050e87f84f (diff) | |
download | gtk+-03018f1d012a167345aab66a259d236c450afe3a.tar.gz |
Fix memory leaks when using add_objects
Diffstat (limited to 'gtk/gtkbuilderparser.c')
-rw-r--r-- | gtk/gtkbuilderparser.c | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/gtk/gtkbuilderparser.c b/gtk/gtkbuilderparser.c index fa8942134d..b4f6855136 100644 --- a/gtk/gtkbuilderparser.c +++ b/gtk/gtkbuilderparser.c @@ -380,7 +380,12 @@ parse_object (GMarkupParseContext *context, data->inside_requested_object = TRUE; } else - return; + { + g_free (object_class); + g_free (object_id); + g_free (constructor); + return; + } } object_info = g_slice_new0 (ObjectInfo); |