gtk-demo: Plug a memory leak

This leak was there all along. But with the new
gtk_window_destroy(), it shows up as an unclosable
window. Very noticable.
This commit is contained in:
Matthias Clasen 2020-05-13 17:24:57 -04:00
parent 10be40a8b1
commit e87bc3d33d

View File

@ -218,6 +218,8 @@ do_iconscroll (GtkWidget *do_widget)
hadjustment = GTK_ADJUSTMENT (gtk_builder_get_object (builder, "hadjustment"));
vadjustment = GTK_ADJUSTMENT (gtk_builder_get_object (builder, "vadjustment"));
set_widget_type (0);
g_object_unref (builder);
}
if (!gtk_widget_get_visible (window))