Commit dbc0dfc0 authored by Xavier Thompson's avatar Xavier Thompson

Fix temps not being freed when deleting cypclass

parent 5bfd8c82
...@@ -6511,9 +6511,9 @@ class DelStatNode(StatNode): ...@@ -6511,9 +6511,9 @@ class DelStatNode(StatNode):
arg.free_temps(code) arg.free_temps(code)
elif arg.type.is_cyp_class: elif arg.type.is_cyp_class:
arg.generate_evaluation_code(code) arg.generate_evaluation_code(code)
code.putln("Cy_DECREF(%s);" % arg.result()) code.put_decref_clear(arg.result(), arg.type)
code.putln("%s = NULL;" % arg.result())
arg.generate_disposal_code(code) arg.generate_disposal_code(code)
arg.free_temps(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