Commit 05e3d0e5 authored by Ken Thomases's avatar Ken Thomases Committed by Alexandre Julliard

winemac: Make sure the same housekeeping is done when closing a window as is done when hiding it.

parent 3ffd998c
......@@ -1801,8 +1801,11 @@ void macdrv_destroy_cocoa_window(macdrv_window w)
NSAutoreleasePool* pool = [[NSAutoreleasePool alloc] init];
WineWindow* window = (WineWindow*)w;
OnMainThread(^{
[window doOrderOut];
[window close];
});
[window.queue discardEventsMatchingMask:-1 forWindow:window];
[window close];
[window release];
[pool release];
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment