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

Follow cppclass behaviour for del statement on cyobject

parent afded90d
......@@ -6322,7 +6322,9 @@ class DelStatNode(StatNode):
code.putln("delete %s;" % arg.result())
arg.generate_disposal_code(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