add destroy() for Components to fix bug #52
[enigma2.git] / lib / python / Components / PerServiceDisplay.py
index 55ef3d18672509e756618b610a058a7fba24f7e5..821f6d165bc2a070a271761e59de42dd0948b5a2 100644 (file)
@@ -17,6 +17,9 @@ class PerServiceBase(GUIComponent):
                # start with stopped state, so simulate that
                self.event(iPlayableService.evEnd)
 
                # start with stopped state, so simulate that
                self.event(iPlayableService.evEnd)
 
+       def destroy(self):
+               self.navcore.event.remove(self.event)
+
        def event(self, ev):
                # loop up if we need to handle this event
                if self.eventmap.has_key(ev):
        def event(self, ev):
                # loop up if we need to handle this event
                if self.eventmap.has_key(ev):