forked from AuroraMiddleware/gtk
gtk-demo: Plug a leak
We were leaking the builder in the builder 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
1aa86d23f4
commit
aaed61de66
@ -83,7 +83,7 @@ do_builder (GtkWidget *do_widget)
|
||||
window);
|
||||
gtk_widget_insert_action_group (window, "win", actions);
|
||||
|
||||
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