Commit a2406827 authored by Xavier Thompson's avatar Xavier Thompson

Remove invalid incref on cypclass loop variable

parent 44cb0487
...@@ -3063,8 +3063,6 @@ class NextNode(AtomicExprNode): ...@@ -3063,8 +3063,6 @@ class NextNode(AtomicExprNode):
def generate_result_code(self, code): def generate_result_code(self, code):
self.iterator.generate_iter_next_result_code(self.result(), code) self.iterator.generate_iter_next_result_code(self.result(), code)
if self.type.is_cyp_class:
code.put_incref(self.result(), self.type)
class AsyncIteratorNode(ExprNode): class AsyncIteratorNode(ExprNode):
......
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