From ab09a860ed810e1085a5ba8f4d5e75d3cf911adb Mon Sep 17 00:00:00 2001 From: Federico Mena Quintero Date: Tue, 10 Feb 2004 17:49:14 +0000 Subject: Fixes #133995, patch by Morten Welinder . 2004-02-10 Federico Mena Quintero Fixes #133995, patch by Morten Welinder . * tests/prop-editor.c (create_prop_editor): Free the title. (object_changed): Free the children list. --- tests/prop-editor.c | 2 ++ 1 file changed, 2 insertions(+) (limited to 'tests') 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); -- cgit v1.2.1