From 4230d1eb60d2c85cc1af57f0b19f66f7144d5e23 Mon Sep 17 00:00:00 2001 From: Felix Domke Date: Thu, 15 Dec 2005 12:29:58 +0000 Subject: [PATCH] wizard: cleanup circular reference on close --- lib/python/Screens/Wizard.py | 4 ++++ 1 file changed, 4 insertions(+) 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 = [] -- 2.30.2