mirror of
https://gitlab.winehq.org/wine/wine-gecko.git
synced 2024-09-13 09:24:08 -07:00
Bug 868782 - Fix rooting hazards in txMozillaXSLTProcessor.cpp; r=till
This commit is contained in:
parent
cfa035fed9
commit
f52ea50f54
@ -1438,11 +1438,11 @@ txVariable::Convert(nsIVariant *aValue, txAExprResult** aResult)
|
||||
JSContext* cx = nsContentUtils::GetCurrentJSContext();
|
||||
NS_ENSURE_TRUE(cx, NS_ERROR_NOT_AVAILABLE);
|
||||
|
||||
JSObject *jsobj;
|
||||
rv = holder->GetJSObject(&jsobj);
|
||||
JS::RootedObject jsobj(cx);
|
||||
rv = holder->GetJSObject(jsobj.address());
|
||||
NS_ENSURE_SUCCESS(rv, rv);
|
||||
|
||||
JSString *str = JS_ValueToString(cx, OBJECT_TO_JSVAL(jsobj));
|
||||
JS::RootedString str(cx, JS_ValueToString(cx, OBJECT_TO_JSVAL(jsobj)));
|
||||
NS_ENSURE_TRUE(str, NS_ERROR_FAILURE);
|
||||
|
||||
nsDependentJSString value;
|
||||
|
Loading…
Reference in New Issue
Block a user