Commit 6f3769d1 authored by Stefan Behnel's avatar Stefan Behnel

fix leaking classmethods in cdef classes

parent dc1104f3
...@@ -1302,6 +1302,8 @@ class NameNode(AtomicExprNode): ...@@ -1302,6 +1302,8 @@ class NameNode(AtomicExprNode):
namespace, namespace,
self.interned_cname, self.interned_cname,
rhs.py_result())) rhs.py_result()))
rhs.generate_disposal_code(code)
rhs.free_temps(code)
# in Py2.6+, we need to invalidate the method cache # in Py2.6+, we need to invalidate the method cache
code.putln("PyType_Modified(%s);" % code.putln("PyType_Modified(%s);" %
entry.scope.parent_type.typeptr_cname) entry.scope.parent_type.typeptr_cname)
......
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