unlink some cyclic dependencys to get garbage collection working
[enigma2.git] / lib / python / Plugins / Extensions / CutListEditor / plugin.py
index 200e37ccc639ec21742d5ac134c9b07ef48d381c..6f793d7f1fd2c38b90d9fa98bd6fa518d0e5d0e9 100644 (file)
@@ -121,6 +121,10 @@ class CutList(GUIComponent):
                instance.setItemHeight(30)
                instance.selectionChanged.get().append(self.selectionChanged)
 
+       def preWidgetRemove(self, instance):
+               instance.setContent(None)
+               instance.selectionChanged.get().remove(self.selectionChanged)
+
        def selectionChanged(self):
                for x in self.onSelectionChanged:
                        x()