Fix js project with pre-build frameworks crash when exit program

This commit is contained in:
XiaoFeng 2015-12-29 19:38:37 +08:00
parent 69a6406661
commit 52fb3fd098
1 changed files with 3 additions and 1 deletions

View File

@ -10,5 +10,7 @@ int APIENTRY _tWinMain(HINSTANCE hInstance,
UNREFERENCED_PARAMETER(hPrevInstance);
UNREFERENCED_PARAMETER(lpCmdLine);
auto simulator = SimulatorWin::getInstance();
return simulator->run();
int ret = simulator->run();
delete simulator;
return ret;
}