]> Pileus Git - ~andy/gtk/commitdiff
Plug leak.
authorMorten Welinder <terra@gnome.org>
Wed, 17 Mar 2004 21:38:58 +0000 (21:38 +0000)
committerMorten Welinder <mortenw@src.gnome.org>
Wed, 17 Mar 2004 21:38:58 +0000 (21:38 +0000)
2004-03-17  Morten Welinder  <terra@gnome.org>

* tests/prop-editor.c (object_changed): Plug leak.

ChangeLog
ChangeLog.pre-2-10
ChangeLog.pre-2-4
ChangeLog.pre-2-6
ChangeLog.pre-2-8
tests/prop-editor.c

index 13dfc5c3506fd2c44cabd103b803e2a8904ad449..290bf4a71eba37d286433a26ee845ce3581afb70 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,5 +1,7 @@
 2004-03-17  Morten Welinder  <terra@gnome.org>
 
+       * tests/prop-editor.c (object_changed): Plug leak.
+
        * tests/testfilechooser.c (main): Plug some leaks and expose
        others.
 
index 13dfc5c3506fd2c44cabd103b803e2a8904ad449..290bf4a71eba37d286433a26ee845ce3581afb70 100644 (file)
@@ -1,5 +1,7 @@
 2004-03-17  Morten Welinder  <terra@gnome.org>
 
+       * tests/prop-editor.c (object_changed): Plug leak.
+
        * tests/testfilechooser.c (main): Plug some leaks and expose
        others.
 
index 13dfc5c3506fd2c44cabd103b803e2a8904ad449..290bf4a71eba37d286433a26ee845ce3581afb70 100644 (file)
@@ -1,5 +1,7 @@
 2004-03-17  Morten Welinder  <terra@gnome.org>
 
+       * tests/prop-editor.c (object_changed): Plug leak.
+
        * tests/testfilechooser.c (main): Plug some leaks and expose
        others.
 
index 13dfc5c3506fd2c44cabd103b803e2a8904ad449..290bf4a71eba37d286433a26ee845ce3581afb70 100644 (file)
@@ -1,5 +1,7 @@
 2004-03-17  Morten Welinder  <terra@gnome.org>
 
+       * tests/prop-editor.c (object_changed): Plug leak.
+
        * tests/testfilechooser.c (main): Plug some leaks and expose
        others.
 
index 13dfc5c3506fd2c44cabd103b803e2a8904ad449..290bf4a71eba37d286433a26ee845ce3581afb70 100644 (file)
@@ -1,5 +1,7 @@
 2004-03-17  Morten Welinder  <terra@gnome.org>
 
+       * tests/prop-editor.c (object_changed): Plug leak.
+
        * tests/testfilechooser.c (main): Plug some leaks and expose
        others.
 
index 0dc055b3d9d755218584ed4d07e354ed66c66e14..0ac740663d318559be7744210918ccbc0a66cd46 100644 (file)
@@ -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);
 }