cleanup all leaking events that I get when I do a simple login then logout

This commit is contained in:
Redmond Urbino 2007-01-26 04:08:59 +00:00
parent 8f59fd735b
commit 4fc2782a32
2 changed files with 4 additions and 0 deletions

View File

@ -334,6 +334,8 @@ class DirectDialog(DirectFrame):
def destroy(self):
if self['fadeScreen']:
base.transitions.noTransitions()
for button in self.buttonList:
button.destroy()
DirectFrame.destroy(self)
class OkDialog(DirectDialog):

View File

@ -144,6 +144,8 @@ class DirectScrolledList(DirectFrame):
taskMgr.remove(self.taskName("scroll"))
if hasattr(self, "currentSelected"):
del self.currentSelected
self.incButton.destroy()
self.decButton.destroy()
DirectFrame.destroy(self)
def selectListItem(self, item):