Fixed: #1029 destroyWindow() terminates the whole application

This commit is contained in:
rti 2010-08-04 21:43:42 +02:00
parent fddfab508b
commit b1fa58f06b

View file

@ -255,7 +255,7 @@ nlWindow createWindow(const GfxMode& mode)
return view;
}
/// destroy the given window and uninitialize the cocoa application
/// destroy the given window
bool destroyWindow(nlWindow wnd)
{
NSView* view = (NSView*)wnd;
@ -263,9 +263,6 @@ bool destroyWindow(nlWindow wnd)
// release the window
[[view window] release];
// shut down the application
[NSApp terminate:nil];
// release the pool
[g_pool release];
g_pool = nil;