Commit 1a3bc804 authored by gsamain's avatar gsamain Committed by Xavier Thompson

For in statement refcount fix

parent 8b956bc7
...@@ -2998,6 +2998,8 @@ class NextNode(AtomicExprNode): ...@@ -2998,6 +2998,8 @@ 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_cyincref(self.result())
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