From 046190cb8a198555f57147b2bedee6a243cf9f7a Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Timm=20B=C3=A4der?= Date: Fri, 3 Apr 2020 07:37:54 +0200 Subject: [PATCH] window: Don't leak toplevel layout --- gtk/gtkwindow.c | 1 + 1 file changed, 1 insertion(+) diff --git a/gtk/gtkwindow.c b/gtk/gtkwindow.c index 204f34d4be..d7a62f52ab 100644 --- a/gtk/gtkwindow.c +++ b/gtk/gtkwindow.c @@ -2496,6 +2496,7 @@ gtk_window_dispose (GObject *object) g_list_free_full (priv->foci, (GDestroyNotify) gtk_pointer_focus_unref); priv->foci = NULL; + g_clear_pointer (&priv->layout, gdk_toplevel_layout_unref); gtk_window_set_focus (window, NULL); gtk_window_set_default_widget (window, NULL); remove_attach_widget (window);