mirror of
https://gitlab.winehq.org/wine/wine-gecko.git
synced 2024-09-13 09:24:08 -07:00
Bug 868783 - Fix rooting hazards in nsXBLSerialize.cpp; r=till
This commit is contained in:
parent
f52ea50f54
commit
d3a06e40f8
@ -16,7 +16,8 @@ XBL_SerializeFunction(nsIScriptContext* aContext,
|
||||
JSObject* aFunctionObject)
|
||||
{
|
||||
AutoPushJSContext cx(aContext->GetNativeContext());
|
||||
return nsContentUtils::XPConnect()->WriteFunction(aStream, cx, aFunctionObject);
|
||||
JS::RootedObject function(cx, aFunctionObject);
|
||||
return nsContentUtils::XPConnect()->WriteFunction(aStream, cx, function);
|
||||
}
|
||||
|
||||
nsresult
|
||||
|
Loading…
Reference in New Issue
Block a user