diff options
author | Federico Mena Quintero <federico@ximian.com> | 2004-02-10 17:49:14 +0000 |
---|---|---|
committer | Federico Mena Quintero <federico@src.gnome.org> | 2004-02-10 17:49:14 +0000 |
commit | ab09a860ed810e1085a5ba8f4d5e75d3cf911adb (patch) | |
tree | fa828c65b6170e3de4eab134d7826320052107cc /tests | |
parent | 6f1d9d471f2c79c00cf8023bf824b4480c92823c (diff) | |
download | gtk+-ab09a860ed810e1085a5ba8f4d5e75d3cf911adb.tar.gz |
Fixes #133995, patch by Morten Welinder <mortenw@gnome.org>.
2004-02-10 Federico Mena Quintero <federico@ximian.com>
Fixes #133995, patch by Morten Welinder <mortenw@gnome.org>.
* tests/prop-editor.c (create_prop_editor): Free the title.
(object_changed): Free the children list.
Diffstat (limited to 'tests')
-rw-r--r-- | tests/prop-editor.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/tests/prop-editor.c b/tests/prop-editor.c index c9fe9d6d3b..33e470e6af 100644 --- a/tests/prop-editor.c +++ b/tests/prop-editor.c @@ -430,6 +430,7 @@ object_changed (GObject *object, GParamSpec *pspec, gpointer data) label = GTK_WIDGET (children->data); button = GTK_WIDGET (children->next->data); g_object_get (object, pspec->name, &obj, NULL); + g_list_free (children); if (obj) name = g_type_name (G_TYPE_FROM_INSTANCE (obj)); @@ -850,6 +851,7 @@ create_prop_editor (GObject *object, gtk_container_add (GTK_CONTAINER (win), properties); title = g_strdup_printf ("Properties of %s", g_type_name (type)); gtk_window_set_title (GTK_WINDOW (win), title); + g_free (title); } gtk_window_set_default_size (GTK_WINDOW (win), -1, 400); |