add destroy() for Components to fix bug #52
[enigma2.git] / lib / python / Components / PerServiceDisplay.py
index 55ef3d1..821f6d1 100644 (file)
@@ -17,6 +17,9 @@ class PerServiceBase(GUIComponent):
                # 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):