]> git.sur5r.net Git - glabels/commitdiff
2009-09-06 Jim Evins <evins@snaught.com>
authorJim Evins <evins@snaught.com>
Sun, 6 Sep 2009 20:49:21 +0000 (20:49 +0000)
committerJim Evins <evins@snaught.com>
Sun, 6 Sep 2009 20:49:21 +0000 (20:49 +0000)
* src/color-button.c: (gl_color_button_finalize):
Unreference menu in finalize.

git-svn-id: https://glabels.svn.sourceforge.net/svnroot/glabels/trunk@871 f5e0f49d-192f-0410-a22d-a8d8700d0965

glabels2/ChangeLog
glabels2/src/color-button.c

index 44cc7ed089710b07cb603625e62fc87a9843593a..bfc4933d26c8c1565ac8eed2ecabd953447b7f78 100644 (file)
@@ -1,3 +1,8 @@
+2009-09-06  Jim Evins  <evins@snaught.com>
+
+       * src/color-button.c: (gl_color_button_finalize):
+               Unreference menu in finalize.
+
 2009-09-06  Jim Evins  <evins@snaught.com>
 
        Some major refinements to the glColorCombo family of widgets.
index b4645d7e6882a70c9ec48d61429bda3c270afa9e..ef5a95b4a2a7407b46e6e1ead40c66f1a033f1b9 100644 (file)
@@ -180,6 +180,7 @@ gl_color_button_finalize (GObject *object)
         g_return_if_fail (object && IS_GL_COLOR_BUTTON (object));
         this = GL_COLOR_BUTTON (object);
 
+        g_object_ref_sink (this->priv->menu);
         g_free (this->priv);
 
         G_OBJECT_CLASS (gl_color_button_parent_class)->finalize (object);