diff options
| author | Andreas Monzner <andreas.monzner@multimedia-labs.de> | 2008-02-14 20:40:05 +0000 |
|---|---|---|
| committer | Andreas Monzner <andreas.monzner@multimedia-labs.de> | 2008-02-14 20:40:05 +0000 |
| commit | 8c2a83d6b2a60b2bd408ccdc6d5afd6da506912f (patch) | |
| tree | c382ddc39fdc759befd9e281bcc011e1dd579e9d /lib/python/Screens | |
| parent | 6f73e6abddf4170357c490966d0e1c622eb376f5 (diff) | |
| download | enigma2-8c2a83d6b2a60b2bd408ccdc6d5afd6da506912f.tar.gz enigma2-8c2a83d6b2a60b2bd408ccdc6d5afd6da506912f.zip | |
unlink some cyclic dependencys to get garbage collection working
Diffstat (limited to 'lib/python/Screens')
| -rw-r--r-- | lib/python/Screens/Console.py | 2 | ||||
| -rw-r--r-- | lib/python/Screens/PluginBrowser.py | 4 | ||||
| -rw-r--r-- | lib/python/Screens/ScanSetup.py | 2 |
3 files changed, 7 insertions, 1 deletions
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]: |
