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:
Matthias Clasen 2020-06-01 15:16:02 -04:00
parent b62564fd98
commit 9d15e64f0b

View File

@ -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))