mirror of
https://gitlab.winehq.org/wine/wine-gecko.git
synced 2024-09-13 09:24:08 -07:00
Bug 867459 - Fix storage rooting hazards r=terrence
This commit is contained in:
parent
3a87369b98
commit
13d2098e73
@ -55,8 +55,8 @@ AsyncStatementJSHelper::getParams(AsyncStatement *aStatement,
|
||||
NS_ENSURE_SUCCESS(rv, rv);
|
||||
}
|
||||
|
||||
JSObject *obj = nullptr;
|
||||
rv = aStatement->mStatementParamsHolder->GetJSObject(&obj);
|
||||
JS::Rooted<JSObject*> obj(aCtx);
|
||||
rv = aStatement->mStatementParamsHolder->GetJSObject(obj.address());
|
||||
NS_ENSURE_SUCCESS(rv, rv);
|
||||
|
||||
*_params = OBJECT_TO_JSVAL(obj);
|
||||
|
@ -108,8 +108,8 @@ StatementJSHelper::getRow(Statement *aStatement,
|
||||
NS_ENSURE_SUCCESS(rv, rv);
|
||||
}
|
||||
|
||||
JSObject *obj = nullptr;
|
||||
rv = aStatement->mStatementRowHolder->GetJSObject(&obj);
|
||||
JS::Rooted<JSObject*> obj(aCtx);
|
||||
rv = aStatement->mStatementRowHolder->GetJSObject(obj.address());
|
||||
NS_ENSURE_SUCCESS(rv, rv);
|
||||
|
||||
*_row = OBJECT_TO_JSVAL(obj);
|
||||
@ -147,8 +147,8 @@ StatementJSHelper::getParams(Statement *aStatement,
|
||||
NS_ENSURE_SUCCESS(rv, rv);
|
||||
}
|
||||
|
||||
JSObject *obj = nullptr;
|
||||
rv = aStatement->mStatementParamsHolder->GetJSObject(&obj);
|
||||
JS::Rooted<JSObject*> obj(aCtx);
|
||||
rv = aStatement->mStatementParamsHolder->GetJSObject(obj.address());
|
||||
NS_ENSURE_SUCCESS(rv, rv);
|
||||
|
||||
*_params = OBJECT_TO_JSVAL(obj);
|
||||
|
Loading…
Reference in New Issue
Block a user