ui/gtk/window.c

changeset 1137
db9c3838fd4d
parent 1130
f0def0c24ae6
--- a/ui/gtk/window.c	Sat May 23 21:38:30 2026 +0200
+++ b/ui/gtk/window.c	Sun May 24 08:53:45 2026 +0200
@@ -126,7 +126,9 @@
 #endif
         return TRUE;
     } else {
+        // this cleans up any widget references from the context
         uic_context_prepare_close(obj->ctx);
+        ui_window_widget_destroy(obj);
         return FALSE;
     }
 }

mercurial