mirror of
https://gitlab.winehq.org/wine/wine-gecko.git
synced 2024-09-13 09:24:08 -07:00
Bug 940505 - Fix rooting hazard in JSObject2JSObjectMap::Add() r=bholley
This commit is contained in:
parent
9a6ba361f7
commit
8e2bf74b90
@ -646,7 +646,7 @@ public:
|
||||
return p->value;
|
||||
if (!mTable.add(p, key, value))
|
||||
return nullptr;
|
||||
MOZ_ASSERT(xpc::GetObjectScope(key)->mWaiverWrapperMap == this);
|
||||
MOZ_ASSERT(xpc::GetCompartmentPrivate(key)->scope->mWaiverWrapperMap == this);
|
||||
JS_StoreObjectPostBarrierCallback(cx, KeyMarkCallback, key, this);
|
||||
return value;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user