From: Felix Domke Date: Thu, 15 Dec 2005 12:29:58 +0000 (+0000) Subject: wizard: cleanup circular reference on close X-Git-Tag: 2.6.0~4698 X-Git-Url: https://git.cweiske.de/enigma2.git/commitdiff_plain/4230d1eb60d2c85cc1af57f0b19f66f7144d5e23?ds=sidebyside wizard: cleanup circular reference on close --- diff --git a/lib/python/Screens/Wizard.py b/lib/python/Screens/Wizard.py index 0f8f1998..fd9e9c3c 100644 --- a/lib/python/Screens/Wizard.py +++ b/lib/python/Screens/Wizard.py @@ -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 = []