Fix leaking of scripting engine
This commit is contained in:
parent
b2cdc8c97e
commit
7df560ae63
@ -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();
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user