diff --git a/frameworks/tools/qt/simulator/entry/main.cpp b/frameworks/tools/qt/simulator/entry/main.cpp index 64a9ce4ca49756caf2f03d5f3a4dd3afc4ae7c8c..6baa8879763a9c56ace21e26e646fac9ec2ff141 100644 --- a/frameworks/tools/qt/simulator/entry/main.cpp +++ b/frameworks/tools/qt/simulator/entry/main.cpp @@ -60,6 +60,7 @@ namespace { if (file->exists() == false) { jsBundlePath = ""; } + delete file; } int16_t defaultHeapSize = DEFAULT_JSHEAP_SIZE; // KB QString jsHeapSize = SimulatorConfig::GetInstance().GetConfigValue(CONFIG_KEY_JSHEAP_SIZE);