gtk-demo: Plug a small memory leak

The settings demo was leaking a GtkBuilderScope.
This commit is contained in:
Matthias Clasen 2020-08-06 21:13:39 -04:00
parent c212dd4ec0
commit 04c3c659f5

View File

@ -358,6 +358,8 @@ do_listview_settings (GtkWidget *do_widget)
builder = gtk_builder_new (); builder = gtk_builder_new ();
gtk_builder_set_scope (builder, scope); gtk_builder_set_scope (builder, scope);
g_object_unref (scope);
gtk_builder_add_from_resource (builder, "/listview_settings/listview_settings.ui", NULL); gtk_builder_add_from_resource (builder, "/listview_settings/listview_settings.ui", NULL);
window = GTK_WIDGET (gtk_builder_get_object (builder, "window")); window = GTK_WIDGET (gtk_builder_get_object (builder, "window"));