Separate JS_ShutDown from the normal ScriptingHost shutdown, because it's resetting non-thread-safe per-process state.

DllLoader: Report dlerror when dlopen fails.
AtlasObject: Avoid ICC warnings caused by 'const T' being equivalent to
'T' when 'T' is already const.

This was SVN commit r5133.
This commit is contained in:
Ykkrosh
2007-06-03 15:37:26 +00:00
parent 48ae626a31
commit ecaf665d5a
8 changed files with 31 additions and 4 deletions
+6
View File
@@ -82,7 +82,13 @@ ScriptingHost::~ScriptingHost()
JS_DestroyRuntime(m_RunTime);
m_RunTime = NULL;
}
}
void ScriptingHost::FinalShutdown()
{
// This should only be called once per process, just to clean up before
// we report memory leaks. (Otherwise, if it's called while there are
// other contexts active in other threads, things will break.)
JS_ShutDown();
}