From 99aa131ee83cf753fcb94ab4271718288dd06317 Mon Sep 17 00:00:00 2001 From: Morten Welinder Date: Wed, 17 Mar 2004 21:38:58 +0000 Subject: [PATCH] Plug leak. 2004-03-17 Morten Welinder * tests/prop-editor.c (object_changed): Plug leak. --- ChangeLog | 2 ++ ChangeLog.pre-2-10 | 2 ++ ChangeLog.pre-2-4 | 2 ++ ChangeLog.pre-2-6 | 2 ++ ChangeLog.pre-2-8 | 2 ++ tests/prop-editor.c | 3 +++ 6 files changed, 13 insertions(+) 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); } -- 2.43.2