forked from mirrors/0ad
Properly shut down SpiderMonkey using JS_ShutDown.
This also adds some validation to ensure the correct order of JS_Init, JS_NewRuntime, JS_DestroyRuntime and JS_ShutDown calls. Refs #3708 This was SVN commit r18584.
This commit is contained in:
@@ -433,11 +433,6 @@ ScriptInterface::~ScriptInterface()
|
||||
}
|
||||
}
|
||||
|
||||
void ScriptInterface::ShutDown()
|
||||
{
|
||||
JS_ShutDown();
|
||||
}
|
||||
|
||||
void ScriptInterface::SetCallbackData(void* pCBData)
|
||||
{
|
||||
m_CxPrivate.pCBData = pCBData;
|
||||
|
||||
Reference in New Issue
Block a user