Bug 867459 - Fix gfx rooting hazards r=terrence

This commit is contained in:
David Zbarsky 2013-05-02 22:02:40 -04:00
parent 153dded199
commit 3a87369b98

View File

@ -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;
}