mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-12-04 02:57:38 +00:00
Fix another scripts+runtime survive a zero-context condition bug reported by MikeM@RetekSolutions.com.
This commit is contained in:
parent
652949b563
commit
9715e2d8b6
@ -263,8 +263,9 @@ js_DestroyContext(JSContext *cx, JSGCMode gcmode)
|
||||
if (rt->atomState.liveAtoms == 0)
|
||||
js_FreeAtomState(cx, &rt->atomState);
|
||||
|
||||
/* Now after the last GC can we free the script filename table. */
|
||||
js_FinishRuntimeScriptState(cx);
|
||||
/* Also free the script filename table if it exists and is empty. */
|
||||
if (rt->scriptFilenameTable && rt->scriptFilenameTable->nentries == 0)
|
||||
js_FinishRuntimeScriptState(cx);
|
||||
|
||||
/* Take the runtime down, now that it has no contexts or atoms. */
|
||||
JS_LOCK_GC(rt);
|
||||
|
Loading…
Reference in New Issue
Block a user