Bug 868266. Root the arguments list in nsObjectLoadingContent::LegacyCall. r=terrence

This commit is contained in:
Boris Zbarsky 2013-05-03 19:28:32 -04:00
Родитель 4e24b17081
Коммит 2f61b956d6
1 изменённых файлов: 1 добавлений и 0 удалений

Просмотреть файл

@ -2875,6 +2875,7 @@ nsObjectLoadingContent::LegacyCall(JSContext* aCx,
// Now wrap things up into the compartment of "obj"
JSAutoCompartment ac(aCx, obj);
nsTArray<JS::Value> args(aArguments);
JS::AutoArrayRooter rooter(aCx, args.Length(), args.Elements());
for (JS::Value *arg = args.Elements(), *arg_end = arg + args.Length();
arg != arg_end;
++arg) {