Bug 770238 - Defer releasing an nsXBLDocumentInfo to avoid calling JS during finalization. r=smaug

--HG--
extra : rebase_source : e25c70be77d0ce702435e0aa075d4be8e894c9b7
This commit is contained in:
Steve Fink 2012-12-06 10:44:31 -08:00
parent ba5edca3be
commit 726c9bf3ae

View File

@ -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();