Commit bd0b336a authored by Kevin Modzelewski's avatar Kevin Modzelewski

Merge pull request #299 from undingen/iterwrapper_gc

Fix: GC must visit the 'iter' field of every BoxedIterWrapper
parents bfea693c 1392bbf6
......@@ -63,6 +63,7 @@ static void iterwrapperGCVisit(GCVisitor* v, Box* b) {
boxGCHandler(v, b);
BoxedIterWrapper* iw = static_cast<BoxedIterWrapper*>(b);
v->visit(iw->iter);
if (iw->next)
v->visit(iw->next);
}
......
......@@ -45,7 +45,7 @@ public:
Box* iter;
Box* next;
BoxedIterWrapper(Box* iter) : iter(iter) {}
BoxedIterWrapper(Box* iter) : iter(iter), next(NULL) {}
DEFAULT_CLASS(iterwrapper_cls);
};
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment