summaryrefslogtreecommitdiff
path: root/gtk/gtkbuilderparser.c
diff options
context:
space:
mode:
authorPaolo Borelli <pborelli@gnome.org>2009-08-14 11:33:47 +0200
committerPaolo Borelli <pborelli@gnome.org>2009-08-14 15:56:44 +0200
commit03018f1d012a167345aab66a259d236c450afe3a (patch)
tree3b3ca79261d48c2225f9508a2433daca9525dfa1 /gtk/gtkbuilderparser.c
parent0696bc8e86df92426d68c5feedeb17050e87f84f (diff)
downloadgtk+-03018f1d012a167345aab66a259d236c450afe3a.tar.gz
Fix memory leaks when using add_objects
Diffstat (limited to 'gtk/gtkbuilderparser.c')
-rw-r--r--gtk/gtkbuilderparser.c7
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);