summaryrefslogtreecommitdiff
path: root/demos
diff options
context:
space:
mode:
authorMatthias Clasen <mclasen@redhat.com>2014-05-13 15:50:23 -0400
committerMatthias Clasen <mclasen@redhat.com>2014-05-13 15:50:23 -0400
commit758734a8c5e3006d50862d272a1b78e967c7f236 (patch)
tree089ce493088e3f41a91a42f209b63ba79cac75c0 /demos
parent0ee35aa27b1631b23293242c41024c84dc7d7115 (diff)
downloadgtk+-758734a8c5e3006d50862d272a1b78e967c7f236.tar.gz
gtk3-demo: Don't leak in the sizegroup example
Nobody was cleaning up the size group. Pointed out in https://bugzilla.gnome.org/show_bug.cgi?id=645966
Diffstat (limited to 'demos')
-rw-r--r--demos/gtk-demo/sizegroup.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/demos/gtk-demo/sizegroup.c b/demos/gtk-demo/sizegroup.c
index c15b78b938..e38340195a 100644
--- a/demos/gtk-demo/sizegroup.c
+++ b/demos/gtk-demo/sizegroup.c
@@ -120,6 +120,7 @@ do_sizegroup (GtkWidget *do_widget)
gtk_container_set_border_width (GTK_CONTAINER (vbox), 5);
size_group = gtk_size_group_new (GTK_SIZE_GROUP_HORIZONTAL);
+ g_object_set_data_full (G_OBJECT (window), "size-group", size_group, g_object_unref);
/* Create one frame holding color options */
frame = gtk_frame_new ("Color Options");