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

Follow cppclass behaviour for del statement on cyobject

parent d85dba6a
......@@ -6352,7 +6352,9 @@ class DelStatNode(StatNode):
arg.generate_disposal_code(code)
arg.free_temps(code)
elif arg.type.is_cyp_class:
arg.generate_evaluation_code(code)
code.putln("Cy_DECREF(%s);" % arg.result())
arg.generate_disposal_code(code)
# else error reported earlier
def annotate(self, code):
......
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