mirror of
https://gitlab.gnome.org/GNOME/gtk.git
synced 2025-01-04 17:50:18 +00:00
window: Don't leak toplevel layout
This commit is contained in:
parent
53592497a4
commit
046190cb8a
@ -2496,6 +2496,7 @@ gtk_window_dispose (GObject *object)
|
|||||||
g_list_free_full (priv->foci, (GDestroyNotify) gtk_pointer_focus_unref);
|
g_list_free_full (priv->foci, (GDestroyNotify) gtk_pointer_focus_unref);
|
||||||
priv->foci = NULL;
|
priv->foci = NULL;
|
||||||
|
|
||||||
|
g_clear_pointer (&priv->layout, gdk_toplevel_layout_unref);
|
||||||
gtk_window_set_focus (window, NULL);
|
gtk_window_set_focus (window, NULL);
|
||||||
gtk_window_set_default_widget (window, NULL);
|
gtk_window_set_default_widget (window, NULL);
|
||||||
remove_attach_widget (window);
|
remove_attach_widget (window);
|
||||||
|
Loading…
Reference in New Issue
Block a user