mirror of
https://gitlab.winehq.org/wine/wine-gecko.git
synced 2024-09-13 09:24:08 -07:00
Bug 770238 - Defer releasing an nsXBLDocumentInfo to avoid calling JS during finalization. r=smaug
--HG-- extra : rebase_source : e25c70be77d0ce702435e0aa075d4be8e894c9b7
This commit is contained in:
parent
ba5edca3be
commit
726c9bf3ae
@ -72,7 +72,7 @@ XBLFinalize(JSFreeOp *fop, JSObject *obj)
|
||||
{
|
||||
nsXBLDocumentInfo* docInfo =
|
||||
static_cast<nsXBLDocumentInfo*>(::JS_GetPrivate(obj));
|
||||
NS_RELEASE(docInfo);
|
||||
xpc::DeferredRelease(static_cast<nsIScriptGlobalObjectOwner*>(docInfo));
|
||||
|
||||
nsXBLJSClass* c = static_cast<nsXBLJSClass*>(::JS_GetClass(obj));
|
||||
c->Drop();
|
||||
|
Loading…
Reference in New Issue
Block a user