Fix leaking of scripting engine

This commit is contained in:
Benau 2016-10-12 09:30:08 +08:00
parent b2cdc8c97e
commit 7df560ae63

View File

@ -77,6 +77,8 @@ namespace Scripting
ScriptEngine::~ScriptEngine()
{
// Release the engine
m_pending_timeouts.clearAndDeleteAll();
m_engine->DiscardModule(MODULE_ID_MAIN_SCRIPT_FILE);
m_engine->Release();
}