Bug 1044205 - Detach the XPCWrappedNativeScope from the CompartmentPrivate during forcible shutdown. r=billm

This commit is contained in:
Bobby Holley 2014-07-29 08:48:32 -07:00
parent d33fbbe4a2
commit 85a6735f8c

View File

@ -610,6 +610,8 @@ XPCWrappedNativeScope::KillDyingScopes()
XPCWrappedNativeScope* cur = gDyingScopes;
while (cur) {
XPCWrappedNativeScope* next = cur->mNext;
if (cur->mGlobalJSObject)
CompartmentPrivate::Get(cur->mGlobalJSObject)->scope = nullptr;
delete cur;
cur = next;
}