winemac: Make sure the same housekeeping is done when closing a window as is done when hiding it.
This commit is contained in:
parent
3ffd998c46
commit
05e3d0e5cc
|
@ -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];
|
||||
|
|
Loading…
Reference in New Issue