diff options
author | culler <culler> | 2017-11-21 17:45:27 (GMT) |
---|---|---|
committer | culler <culler> | 2017-11-21 17:45:27 (GMT) |
commit | 3aae4c190b6453a1fb56d2de22b116afa8beda94 (patch) | |
tree | 8b0123f549111322d81fcfa502e3a5da3ddd2ef5 /macosx | |
parent | 7d69dd3f5704e1b8afa26afbe49704a5f5b3528c (diff) | |
download | tk-3aae4c190b6453a1fb56d2de22b116afa8beda94.zip tk-3aae4c190b6453a1fb56d2de22b116afa8beda94.tar.gz tk-3aae4c190b6453a1fb56d2de22b116afa8beda94.tar.bz2 |
Process events to make sure closed windows are freed immediately.
Diffstat (limited to 'macosx')
-rw-r--r-- | macosx/tkMacOSXWm.c | 5 |
1 files changed, 5 insertions, 0 deletions
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 |