mirror of https://github.com/axmolengine/axmol.git
Fix pre-compiled framework js project will crash if use "Force Quit" to terminate program.
This commit is contained in:
parent
0fcfb359d2
commit
1554b6e676
|
@ -726,4 +726,10 @@ static void glfwDropFunc(GLFWwindow *window, int count, const char **files)
|
|||
}
|
||||
}
|
||||
|
||||
- (void)applicationWillTerminate:(NSNotification *)notification
|
||||
{
|
||||
CC_SAFE_DELETE(_app);
|
||||
[[NSApplication sharedApplication] terminate:self];
|
||||
}
|
||||
|
||||
@end
|
||||
|
|
Loading…
Reference in New Issue