Backed out changeset 17d36418f4d6, possible memory leak. r=graphserver

This commit is contained in:
Jeff Walden
2012-09-17 15:10:47 -07:00
parent 7b26cad2c9
commit 8f89ecae06
39 changed files with 474 additions and 445 deletions

View File

@@ -1777,8 +1777,8 @@ GlobalObject::initIteratorClasses(JSContext *cx, Handle<GlobalObject *> global)
iteratorProto->asPropertyIterator().setNativeIterator(ni);
Rooted<JSFunction*> ctor(cx);
ctor = global->createConstructor(cx, IteratorConstructor, cx->runtime->atomState.IteratorAtom, 2);
Rooted<JSFunction*> ctor(cx, global->createConstructor(cx, IteratorConstructor,
CLASS_NAME(cx, Iterator), 2));
if (!ctor)
return false;
if (!LinkConstructorAndPrototype(cx, ctor, iteratorProto))