Commit 52a43a75 authored by gsamain's avatar gsamain Committed by Xavier Thompson

Del statement on cypclass assign to NULL

parent bde42e48
......@@ -6324,6 +6324,7 @@ class DelStatNode(StatNode):
elif arg.type.is_cyp_class:
arg.generate_evaluation_code(code)
code.putln("Cy_DECREF(%s);" % arg.result())
code.putln("%s = NULL;" % arg.result())
arg.generate_disposal_code(code)
# 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