mirror of
https://gitlab.winehq.org/wine/wine-gecko.git
synced 2024-09-13 09:24:08 -07:00
Bug 867459 - Fix gfx rooting hazards r=terrence
This commit is contained in:
parent
153dded199
commit
3a87369b98
@ -127,7 +127,7 @@ NS_IMETHODIMP nsScriptableRegion::GetRects(JSContext* aCx, JS::Value* aRects)
|
||||
return NS_OK;
|
||||
}
|
||||
|
||||
JSObject* destArray = JS_NewArrayObject(aCx, numRects * 4, NULL);
|
||||
JS::Rooted<JSObject*> destArray(aCx, JS_NewArrayObject(aCx, numRects * 4, nullptr));
|
||||
if (!destArray) {
|
||||
return NS_ERROR_OUT_OF_MEMORY;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user