forked from AuroraMiddleware/gtk
gtk-demo: Plug another leak
We were leaking the builder in the cursors demo, by creating a ref cycle. This was showing up as the list entry not going back to upright after closing the window.
This commit is contained in:
parent
aaed61de66
commit
3f6dd34b18
@ -29,7 +29,7 @@ do_cursors (GtkWidget *do_widget)
|
||||
gtk_widget_get_display (do_widget));
|
||||
g_signal_connect (window, "destroy",
|
||||
G_CALLBACK (on_destroy), NULL);
|
||||
g_object_set_data_full (G_OBJECT (window), "builder", builder, g_object_unref);
|
||||
g_object_unref (builder);
|
||||
}
|
||||
|
||||
if (!gtk_widget_get_visible (window))
|
||||
|
Loading…
Reference in New Issue
Block a user