mirror of
https://gitlab.winehq.org/wine/wine-gecko.git
synced 2024-09-13 09:24:08 -07:00
Clear XPCWrappedNativeScope fields to avoid accessing freed arenas during destruction, no bug. r=billm
This commit is contained in:
parent
31a7d5b91e
commit
52d6223768
@ -431,6 +431,9 @@ XPCWrappedNativeScope::FinishedMarkPhaseOfGC(JSContext* cx, XPCJSRuntime* rt)
|
||||
if (cur->mGlobalJSObject &&
|
||||
JS_IsAboutToBeFinalized(cx, cur->mGlobalJSObject)) {
|
||||
cur->mGlobalJSObject = nsnull;
|
||||
cur->mPrototypeJSObject = nsnull;
|
||||
cur->mPrototypeJSFunction = nsnull;
|
||||
cur->mPrototypeNoHelper = nsnull;
|
||||
cur->mScriptObjectPrincipal = nsnull;
|
||||
if (cur->GetCachedDOMPrototypes().IsInitialized())
|
||||
cur->GetCachedDOMPrototypes().Clear();
|
||||
|
Loading…
Reference in New Issue
Block a user