unlink some cyclic dependencys to get garbage collection working
[vuplus_dvbapp] / lib / python / Plugins / Extensions / CutListEditor / plugin.py
index 200e37c..6f793d7 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()