Bug 866789 - GC: Fix some more shell rooting hazards r=terrence

This commit is contained in:
Jon Coppeard
2013-04-30 11:18:18 +01:00
parent 1432eb8574
commit a8ad284a74
10 changed files with 28 additions and 23 deletions

View File

@@ -576,10 +576,10 @@ js::GetIterator(JSContext *cx, HandleObject obj, unsigned flags, MutableHandleVa
if (!Invoke(cx, ObjectOrNullValue(obj), method, 0, NULL, vp.address()))
return false;
RawObject obj = ToObject(cx, vp);
if (!obj)
RawObject resultObj = ToObject(cx, vp);
if (!resultObj)
return false;
vp.setObject(*obj);
vp.setObject(*resultObj);
return true;
}