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:
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
|
||||
Reference in new issue
Block a user