Commit 9869daa1 authored by gsamain's avatar gsamain

Follow cppclass behaviour for del statement on cyobject

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