Commit ec66b76b authored by Marius Wachtler's avatar Marius Wachtler

traverse BoxedClosure::parent

parent f4467163
......@@ -4049,6 +4049,8 @@ void AttrWrapperIter::dealloc(Box* _o) noexcept {
void BoxedClosure::dealloc(Box* _o) noexcept {
BoxedClosure* o = (BoxedClosure*)_o;
PyObject_GC_UnTrack(o);
for (int i = 0; i < o->nelts; i++) {
Py_XDECREF(o->elts[i]);
}
......@@ -4065,6 +4067,8 @@ int BoxedClosure::traverse(Box* _o, visitproc visit, void* arg) noexcept {
Py_VISIT(o->elts[i]);
}
Py_VISIT(o->parent);
return 0;
}
......@@ -4075,6 +4079,8 @@ int BoxedClosure::clear(Box* _o) noexcept {
Py_CLEAR(o->elts[i]);
}
Py_CLEAR(o->parent);
return 0;
}
......
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