Commit e93bd5a1 authored by gsamain's avatar gsamain

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 d24eeec8
......@@ -5662,7 +5662,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