Destroy also values of record

Otherwise the groups of xxx2many records stay in the memory due to reference
cycle between Group and Record.

review222006
This commit is contained in:
Cédric Krier committed 2012-01-17 15:38:02 +01:00
1 parent c0e45b2232
commit bf6ca9c2a4
1 file changed
+3
@@ -602,5 +602,8 @@ class Record(SignalEvent):
def destroy(self):
super(Record, self).destroy()
self.group = None
for v in self.value.itervalues():
if hasattr(v, 'destroy'):
v.destroy()
self.value = None
self.next = None