Commit 538c730b authored by gsamain's avatar gsamain

Del statement on cypclass assign to NULL

parent f64d78df
...@@ -6107,6 +6107,7 @@ class DelStatNode(StatNode): ...@@ -6107,6 +6107,7 @@ class DelStatNode(StatNode):
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.putln("Cy_DECREF(%s);" % arg.result())
code.putln("%s = NULL;" % arg.result())
arg.generate_disposal_code(code) arg.generate_disposal_code(code)
# else error reported earlier # else error reported earlier
......
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