[gtk+/gtk-2-16] Fix memory leaks when using add_objects
- From: Matthias Clasen <matthiasc src gnome org>
- To: svn-commits-list gnome org
- Cc:
- Subject: [gtk+/gtk-2-16] Fix memory leaks when using add_objects
- Date: Sat, 29 Aug 2009 02:43:32 +0000 (UTC)
commit b86984d913eb40dda16039c461568532d3d3c1d9
Author: Paolo Borelli <pborelli gnome org>
Date: Fri Aug 14 11:33:47 2009 +0200
Fix memory leaks when using add_objects
gtk/gtkbuilderparser.c | 7 ++++++-
1 files changed, 6 insertions(+), 1 deletions(-)
---
diff --git a/gtk/gtkbuilderparser.c b/gtk/gtkbuilderparser.c
index 2e88ff0..273be7e 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);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]