Commit 31186a67 authored by gsamain's avatar gsamain Committed by Xavier Thompson

Fix cypclass new not going into temp (and try to incref new statements before...

Fix cypclass new not going into temp (and try to incref new statements before happily leaking memory)
parent a6ed210f
......@@ -5739,7 +5739,7 @@ class SimpleCallNode(CallNode):
else:
self.args = [ arg.analyse_types(env) for arg in self.args ]
self.analyse_c_function_call(env)
if func_type.exception_check == '+':
if func_type.exception_check == '+' or self.type.is_cyp_class:
self.is_temp = True
return self
......
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