forked from AuroraMiddleware/gtk
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:
parent
10be40a8b1
commit
e87bc3d33d
@ -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))
|
||||
|
Loading…
Reference in New Issue
Block a user