diff options
author | Sven Gothel <[email protected]> | 2012-04-21 21:11:35 +0200 |
---|---|---|
committer | Sven Gothel <[email protected]> | 2012-04-21 21:11:35 +0200 |
commit | 6bcfe5e3b60782c4bb047117c12579ff15c961a1 (patch) | |
tree | 667e51830a2d622b23769a9eb0f4c5f257beadc2 /src/newt/native/NewtMacWindow.h | |
parent | 89304ecb034b2c2778f09423cb6d66d084074e11 (diff) |
Newt/OSX(native): close0() shall not release NewtMacWindow (NSWindow) in case it's already in destruction (destroyNotifySend via windowWillClose())
This fixes the double release crash of the NSWindow, at the end of an application.
Tested on OSX 10.6.8 and 10.7.3.
Diffstat (limited to 'src/newt/native/NewtMacWindow.h')
-rw-r--r-- | src/newt/native/NewtMacWindow.h | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/src/newt/native/NewtMacWindow.h b/src/newt/native/NewtMacWindow.h index f576f75f7..aa460ea88 100644 --- a/src/newt/native/NewtMacWindow.h +++ b/src/newt/native/NewtMacWindow.h @@ -65,6 +65,7 @@ } - (id)initWithFrame:(NSRect)frameRect; +- (void) release; - (void) dealloc; /* Set during event dispatching cycle */ @@ -122,6 +123,8 @@ defer: (BOOL) deferCreation screen:(NSScreen *)screen isFullscreenWindow:(BOOL)isfs; +- (void) release; +- (void) dealloc; - (void) updateInsets: (JNIEnv*) env; - (void) attachToParent: (NSWindow*) parent; |