diff options
author | Sven Gothel <[email protected]> | 2012-01-19 05:53:04 +0100 |
---|---|---|
committer | Sven Gothel <[email protected]> | 2012-01-19 05:53:04 +0100 |
commit | 5d437df5dc6f73f8a5aad760e9aeba5b5319b436 (patch) | |
tree | 1ad7448d409a3db7a08312206ddd69e8b62c8966 /src | |
parent | 8a2c18cf210ee6465e00f88cecd3ef109421ff1d (diff) |
NEWT/OSX: Window close (release) on main thread, ensuring no 'main thread' event is pending
Diffstat (limited to 'src')
-rw-r--r-- | src/newt/native/MacWindow.m | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/newt/native/MacWindow.m b/src/newt/native/MacWindow.m index 015295931..6d96e01fb 100644 --- a/src/newt/native/MacWindow.m +++ b/src/newt/native/MacWindow.m @@ -737,7 +737,8 @@ NS_ENDHANDLER // This probably happens b/c it sends events to the main loop // but our resources are gone ?! // However, issuing a simple release seems to work quite well. - [mWin release]; + // [mWin release]; + [mWin performSelectorOnMainThread:@selector(release) withObject:nil waitUntilDone:NO]; DBG_PRINT( "windowClose.X - %p,%d view %p,%d, parent %p\n", mWin, getRetainCount(mWin), mView, getRetainCount(mView), pWin); |