4145: During book report creation
svn: r20514
This commit is contained in:
parent
9cc6722221
commit
92049ddf95
@ -109,13 +109,14 @@ class ReportDialog(ManagedWindow.ManagedWindow):
|
|||||||
Close itself.
|
Close itself.
|
||||||
cleanup things that can prevent garbage collection
|
cleanup things that can prevent garbage collection
|
||||||
"""
|
"""
|
||||||
totwidg = range(len(self.widgets))
|
if hasattr(self, 'widgets'): # handle pathlogical bug 4145
|
||||||
totwidg.reverse()
|
totwidg = range(len(self.widgets))
|
||||||
for ind in totwidg:
|
totwidg.reverse()
|
||||||
if hasattr(self.widgets[ind][1], 'clean_up'):
|
for ind in totwidg:
|
||||||
self.widgets[ind][1].clean_up()
|
if hasattr(self.widgets[ind][1], 'clean_up'):
|
||||||
del self.widgets[ind]
|
self.widgets[ind][1].clean_up()
|
||||||
delattr(self, 'widgets')
|
del self.widgets[ind]
|
||||||
|
delattr(self, 'widgets')
|
||||||
for name, fram in self.frames.iteritems():
|
for name, fram in self.frames.iteritems():
|
||||||
totwidg = range(len(fram))
|
totwidg = range(len(fram))
|
||||||
totwidg.reverse()
|
totwidg.reverse()
|
||||||
|
Loading…
Reference in New Issue
Block a user