Commit c6c5e9fd authored by gsamain's avatar gsamain Committed by Xavier Thompson

Make cypclass types always generate a temp for decrefing purpose

parent c00b1a2f
......@@ -750,7 +750,7 @@ class ExprNode(Node):
if not type.is_void:
if type.is_pyobject:
type = PyrexTypes.py_object_type
elif not (self.result_is_used or type.is_memoryviewslice or self.is_c_result_required()):
elif not (type.is_cyp_class or self.result_is_used or type.is_memoryviewslice or self.is_c_result_required()):
self.temp_code = None
return
self.temp_code = code.funcstate.allocate_temp(
......
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