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:
Yves
2016-08-06 15:41:59 +00:00
parent e3b3261a62
commit 9e4f0cc543
7 changed files with 76 additions and 26 deletions
-1
View File
@@ -79,7 +79,6 @@ private:
std::list<JSContext*> m_Contexts;
std::vector<std::shared_ptr<void> > m_FinalizationListObjectIdCache;
static bool m_Initialized;
int m_RuntimeSize;
int m_HeapGrowthBytesGCTrigger;