mirror of
https://port.numenaute.org/aleajactaest/khanat-code-old.git
synced 2024-11-11 17:59:02 +00:00
Fixed: #1029 destroyWindow() terminates the whole application
This commit is contained in:
parent
a13981f0ad
commit
38fbdb0f25
1 changed files with 1 additions and 4 deletions
|
@ -255,7 +255,7 @@ nlWindow createWindow(const GfxMode& mode)
|
||||||
return view;
|
return view;
|
||||||
}
|
}
|
||||||
|
|
||||||
/// destroy the given window and uninitialize the cocoa application
|
/// destroy the given window
|
||||||
bool destroyWindow(nlWindow wnd)
|
bool destroyWindow(nlWindow wnd)
|
||||||
{
|
{
|
||||||
NSView* view = (NSView*)wnd;
|
NSView* view = (NSView*)wnd;
|
||||||
|
@ -263,9 +263,6 @@ bool destroyWindow(nlWindow wnd)
|
||||||
// release the window
|
// release the window
|
||||||
[[view window] release];
|
[[view window] release];
|
||||||
|
|
||||||
// shut down the application
|
|
||||||
[NSApp terminate:nil];
|
|
||||||
|
|
||||||
// release the pool
|
// release the pool
|
||||||
[g_pool release];
|
[g_pool release];
|
||||||
g_pool = nil;
|
g_pool = nil;
|
||||||
|
|
Loading…
Reference in a new issue