From facf78a5b6fdc4dda59751bda708a9f573f9d488 Mon Sep 17 00:00:00 2001 From: Matthias Clasen Date: Fri, 17 Jul 2020 23:15:42 -0400 Subject: [PATCH] inspector: Allow disposing the inspector We were hiding the inspector when the window is closed, but that has the side-effect of keeping references to application windows, so we would keep them artificially alive, which can have side-effects. So, make the inspector go away when closed. --- gtk/inspector/window.c | 2 -- 1 file changed, 2 deletions(-) diff --git a/gtk/inspector/window.c b/gtk/inspector/window.c index 665e4c4c18..ff865a3b79 100644 --- a/gtk/inspector/window.c +++ b/gtk/inspector/window.c @@ -226,8 +226,6 @@ gtk_inspector_window_init (GtkInspectorWindow *iw) iw, NULL); - gtk_window_set_hide_on_close (GTK_WINDOW (iw), TRUE); - gtk_window_group_add_window (gtk_window_group_new (), GTK_WINDOW (iw)); extension_point = g_io_extension_point_lookup ("gtk-inspector-page");