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.
This commit is contained in:
Federico Mena Quintero 2004-02-10 17:49:14 +00:00 committed by Federico Mena Quintero
parent 6f1d9d471f
commit ab09a860ed
6 changed files with 37 additions and 0 deletions

View File

@ -1,3 +1,10 @@
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.
Tue Feb 10 01:58:55 2004 Matthias Clasen <maclas@gmx.de>
* gtk/gtkcontainer.c (gtk_container_set_focus_hadjustment):

View File

@ -1,3 +1,10 @@
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.
Tue Feb 10 01:58:55 2004 Matthias Clasen <maclas@gmx.de>
* gtk/gtkcontainer.c (gtk_container_set_focus_hadjustment):

View File

@ -1,3 +1,10 @@
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.
Tue Feb 10 01:58:55 2004 Matthias Clasen <maclas@gmx.de>
* gtk/gtkcontainer.c (gtk_container_set_focus_hadjustment):

View File

@ -1,3 +1,10 @@
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.
Tue Feb 10 01:58:55 2004 Matthias Clasen <maclas@gmx.de>
* gtk/gtkcontainer.c (gtk_container_set_focus_hadjustment):

View File

@ -1,3 +1,10 @@
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.
Tue Feb 10 01:58:55 2004 Matthias Clasen <maclas@gmx.de>
* gtk/gtkcontainer.c (gtk_container_set_focus_hadjustment):

View File

@ -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);