From 3aae4c190b6453a1fb56d2de22b116afa8beda94 Mon Sep 17 00:00:00 2001 From: culler Date: Tue, 21 Nov 2017 17:45:27 +0000 Subject: Process events to make sure closed windows are freed immediately. --- macosx/tkMacOSXWm.c | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/macosx/tkMacOSXWm.c b/macosx/tkMacOSXWm.c index a3290f1..506501c 100644 --- a/macosx/tkMacOSXWm.c +++ b/macosx/tkMacOSXWm.c @@ -975,6 +975,11 @@ TkWmDeadWindow( } } } + /* + * Process all events immediately to get rid of potential zombies + * as soon as possible. + */ + while (Tk_DoOneEvent(TK_ALL_EVENTS|TK_DONT_WAIT)) {} [NSApp _resetAutoreleasePool]; #if DEBUG_ZOMBIES > 0 -- cgit v0.12