From 8c2a83d6b2a60b2bd408ccdc6d5afd6da506912f Mon Sep 17 00:00:00 2001 From: Andreas Monzner Date: Thu, 14 Feb 2008 20:40:05 +0000 Subject: unlink some cyclic dependencys to get garbage collection working --- lib/python/Screens/Console.py | 2 ++ lib/python/Screens/PluginBrowser.py | 4 +++- lib/python/Screens/ScanSetup.py | 2 ++ 3 files changed, 7 insertions(+), 1 deletion(-) (limited to 'lib/python/Screens') diff --git a/lib/python/Screens/Console.py b/lib/python/Screens/Console.py index 622fb447..d71a7a82 100644 --- a/lib/python/Screens/Console.py +++ b/lib/python/Screens/Console.py @@ -63,6 +63,8 @@ class Console(Screen): def cancel(self): if self.run == len(self.cmdlist): self.close() + self.container.appClosed.get().remove(self.runFinished) + self.container.dataAvail.get().remove(self.dataAvail) def dataAvail(self, str): self["text"].setText(self["text"].getText() + str) diff --git a/lib/python/Screens/PluginBrowser.py b/lib/python/Screens/PluginBrowser.py index fbbc128d..3b4ff116 100644 --- a/lib/python/Screens/PluginBrowser.py +++ b/lib/python/Screens/PluginBrowser.py @@ -141,8 +141,10 @@ class PluginDownloadBrowser(Screen): def installFinished(self): plugins.readPluginList(resolveFilename(SCOPE_PLUGINS)) + self.container.appClosed.get().remove(self.runFinished) + self.container.dataAvail.get().remove(self.dataAvail) self.close() - + def runFinished(self, retval): self.remainingdata = "" if self.run == 0: diff --git a/lib/python/Screens/ScanSetup.py b/lib/python/Screens/ScanSetup.py index 3e71912b..2c636530 100644 --- a/lib/python/Screens/ScanSetup.py +++ b/lib/python/Screens/ScanSetup.py @@ -156,6 +156,8 @@ class CableTransponderSearchSupport: def cableTransponderSearchSessionClosed(self, *val): print "cableTransponderSearchSessionClosed, val", val + self.cable_search_container.appClosed.get().remove(self.cableTransponderSearchClosed) + self.cable_search_container.dataAvail.get().remove(self.getCableTransponderData) self.cable_search_container = None self.cable_search_session = None if val and len(val) and val[0]: -- cgit v1.2.3