From: Morten Welinder Date: Wed, 17 Mar 2004 21:38:58 +0000 (+0000) Subject: Plug leak. X-Git-Url: http://pileus.org/git/?p=~andy%2Fgtk;a=commitdiff_plain;h=99aa131ee83cf753fcb94ab4271718288dd06317 Plug leak. 2004-03-17 Morten Welinder * tests/prop-editor.c (object_changed): Plug leak. --- diff --git a/ChangeLog b/ChangeLog index 13dfc5c35..290bf4a71 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 13dfc5c35..290bf4a71 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 13dfc5c35..290bf4a71 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 13dfc5c35..290bf4a71 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 13dfc5c35..290bf4a71 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 0dc055b3d..0ac740663 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); }