From 52fb3fd0988da45a9622830cbe6f892fe2870e06 Mon Sep 17 00:00:00 2001 From: XiaoFeng Date: Tue, 29 Dec 2015 19:38:37 +0800 Subject: [PATCH] Fix js project with pre-build frameworks crash when exit program --- tools/simulator/frameworks/runtime-src/proj.win32/main.cpp | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/tools/simulator/frameworks/runtime-src/proj.win32/main.cpp b/tools/simulator/frameworks/runtime-src/proj.win32/main.cpp index c4c0104259..09468bbf24 100755 --- a/tools/simulator/frameworks/runtime-src/proj.win32/main.cpp +++ b/tools/simulator/frameworks/runtime-src/proj.win32/main.cpp @@ -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; }