Fix pre-compiled framework js project will crash if use "Force Quit" to terminate program.

This commit is contained in:
XiaoFeng 2016-01-07 10:42:47 +08:00
parent 0fcfb359d2
commit 1554b6e676
1 changed files with 6 additions and 0 deletions

View File

@ -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