Commit cb7628da 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 d9d8ce44
...@@ -5790,7 +5790,7 @@ class SimpleCallNode(CallNode): ...@@ -5790,7 +5790,7 @@ class SimpleCallNode(CallNode):
else: else:
self.args = [ arg.analyse_types(env) for arg in self.args ] self.args = [ arg.analyse_types(env) for arg in self.args ]
self.analyse_c_function_call(env) 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 self.is_temp = True
return self 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