mirror of
https://gitea.wildfiregames.com/0ad/0ad.git
synced 2026-07-14 02:14:56 +00:00
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:
@@ -97,12 +97,6 @@ public:
|
||||
|
||||
~ScriptInterface();
|
||||
|
||||
/**
|
||||
* Shut down the JS system to clean up memory. Must only be called when there
|
||||
* are no ScriptInterfaces alive.
|
||||
*/
|
||||
static void ShutDown();
|
||||
|
||||
struct CxPrivate
|
||||
{
|
||||
ScriptInterface* pScriptInterface; // the ScriptInterface object the current context belongs to
|
||||
|
||||
Reference in New Issue
Block a user