forked from mirrors/0ad
Now calls JS_ShutDown (yay, undocumented functions...) to fix a couple of memory leaks
This was SVN commit r774.
This commit is contained in:
@@ -78,6 +78,8 @@ ScriptingHost::~ScriptingHost()
|
||||
JS_DestroyRuntime(m_RunTime);
|
||||
m_RunTime = NULL;
|
||||
}
|
||||
|
||||
JS_ShutDown();
|
||||
}
|
||||
|
||||
JSContext* ScriptingHost::getContext()
|
||||
|
||||
Reference in New Issue
Block a user