wizard: cleanup circular reference on close
authorFelix Domke <tmbinc@elitedvb.net>
Thu, 15 Dec 2005 12:29:58 +0000 (12:29 +0000)
committerFelix Domke <tmbinc@elitedvb.net>
Thu, 15 Dec 2005 12:29:58 +0000 (12:29 +0000)
lib/python/Screens/Wizard.py

index 0f8f199..fd9e9c3 100644 (file)
@@ -76,6 +76,7 @@ class Wizard(Screen, HelpableScreen):
                self["list"] = MenuList(self.list)
 
                self.onShown.append(self.updateValues)
+               self.onClose.append(self.delReferences)
                
                self["actions"] = NumberActionMap(["WizardActions", "NumberActions"],
                {
@@ -200,6 +201,9 @@ class Wizard(Screen, HelpableScreen):
                else:
                        self["config"].l.setList([])
 
+       def delReferences(self):
+               del self.configInstance
+
 class WizardManager:
        def __init__(self):
                self.wizards = []