mirror of
https://gitlab.gnome.org/GNOME/gtk.git
synced 2024-12-27 14:10:30 +00:00
gtk-demo: Plug a leak
We were leaking a reference to the settings demo. This showed up as gtk4-demo --run listview_settings not exiting when the window is closed.
This commit is contained in:
parent
b62564fd98
commit
9d15e64f0b
@ -343,6 +343,8 @@ do_listview_settings (GtkWidget *do_widget)
|
|||||||
sorter = gtk_string_sorter_new (gtk_property_expression_new (SETTINGS_TYPE_KEY, NULL, "name"));
|
sorter = gtk_string_sorter_new (gtk_property_expression_new (SETTINGS_TYPE_KEY, NULL, "name"));
|
||||||
gtk_column_view_column_set_sorter (name_column, sorter);
|
gtk_column_view_column_set_sorter (name_column, sorter);
|
||||||
g_object_unref (sorter);
|
g_object_unref (sorter);
|
||||||
|
|
||||||
|
g_object_unref (builder);
|
||||||
}
|
}
|
||||||
|
|
||||||
if (!gtk_widget_get_visible (window))
|
if (!gtk_widget_get_visible (window))
|
||||||
|
Loading…
Reference in New Issue
Block a user