mirror of
https://gitlab.winehq.org/wine/wine-gecko.git
synced 2024-09-13 09:24:08 -07:00
Bug 902718 - Defer XPCOM release from the XBL compilation scope finalizer. r=mccr8
Apparently the current setup is incidentally safe, but far from kosher.
This commit is contained in:
parent
b5f8a2c970
commit
3f88a39464
@ -159,8 +159,9 @@ nsXBLDocGlobalObject_finalize(JSFreeOp *fop, JSObject *obj)
|
||||
if (sgo)
|
||||
sgo->OnFinalize(obj);
|
||||
|
||||
// The addref was part of JSObject construction
|
||||
NS_RELEASE(nativeThis);
|
||||
// The addref was part of JSObject construction. Note that this effectively
|
||||
// just calls release later on.
|
||||
nsContentUtils::DeferredFinalize(nativeThis);
|
||||
}
|
||||
|
||||
static bool
|
||||
|
Loading…
Reference in New Issue
Block a user