diff --git a/ChangeLog b/ChangeLog index 13dfc5c350..290bf4a71e 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,5 +1,7 @@ 2004-03-17 Morten Welinder + * tests/prop-editor.c (object_changed): Plug leak. + * tests/testfilechooser.c (main): Plug some leaks and expose others. diff --git a/ChangeLog.pre-2-10 b/ChangeLog.pre-2-10 index 13dfc5c350..290bf4a71e 100644 --- a/ChangeLog.pre-2-10 +++ b/ChangeLog.pre-2-10 @@ -1,5 +1,7 @@ 2004-03-17 Morten Welinder + * tests/prop-editor.c (object_changed): Plug leak. + * tests/testfilechooser.c (main): Plug some leaks and expose others. diff --git a/ChangeLog.pre-2-4 b/ChangeLog.pre-2-4 index 13dfc5c350..290bf4a71e 100644 --- a/ChangeLog.pre-2-4 +++ b/ChangeLog.pre-2-4 @@ -1,5 +1,7 @@ 2004-03-17 Morten Welinder + * tests/prop-editor.c (object_changed): Plug leak. + * tests/testfilechooser.c (main): Plug some leaks and expose others. diff --git a/ChangeLog.pre-2-6 b/ChangeLog.pre-2-6 index 13dfc5c350..290bf4a71e 100644 --- a/ChangeLog.pre-2-6 +++ b/ChangeLog.pre-2-6 @@ -1,5 +1,7 @@ 2004-03-17 Morten Welinder + * tests/prop-editor.c (object_changed): Plug leak. + * tests/testfilechooser.c (main): Plug some leaks and expose others. diff --git a/ChangeLog.pre-2-8 b/ChangeLog.pre-2-8 index 13dfc5c350..290bf4a71e 100644 --- a/ChangeLog.pre-2-8 +++ b/ChangeLog.pre-2-8 @@ -1,5 +1,7 @@ 2004-03-17 Morten Welinder + * tests/prop-editor.c (object_changed): Plug leak. + * tests/testfilechooser.c (main): Plug some leaks and expose others. diff --git a/tests/prop-editor.c b/tests/prop-editor.c index 0dc055b3d9..0ac740663d 100644 --- a/tests/prop-editor.c +++ b/tests/prop-editor.c @@ -442,6 +442,9 @@ object_changed (GObject *object, GParamSpec *pspec, gpointer data) gtk_label_set_text (GTK_LABEL (label), str); gtk_widget_set_sensitive (button, G_IS_OBJECT (obj)); + if (obj) + g_object_unref (obj); + g_free (str); }