mirror of
https://gitlab.gnome.org/GNOME/gtk.git
synced 2025-01-13 05:50:10 +00:00
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
This commit is contained in:
parent
0ee35aa27b
commit
758734a8c5
@ -120,6 +120,7 @@ do_sizegroup (GtkWidget *do_widget)
|
|||||||
gtk_container_set_border_width (GTK_CONTAINER (vbox), 5);
|
gtk_container_set_border_width (GTK_CONTAINER (vbox), 5);
|
||||||
|
|
||||||
size_group = gtk_size_group_new (GTK_SIZE_GROUP_HORIZONTAL);
|
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 */
|
/* Create one frame holding color options */
|
||||||
frame = gtk_frame_new ("Color Options");
|
frame = gtk_frame_new ("Color Options");
|
||||||
|
Loading…
Reference in New Issue
Block a user