aboutsummaryrefslogtreecommitdiff
path: root/lib/python/Components/Element.py
diff options
context:
space:
mode:
authorFelix Domke <tmbinc@elitedvb.net>2008-02-13 22:23:29 +0000
committerFelix Domke <tmbinc@elitedvb.net>2008-02-13 22:23:29 +0000
commit194615a88fac0c4259b3c2217c8e13372b7c3b86 (patch)
treed3ed38612b97b375d4d6b089148ab43267685a4d /lib/python/Components/Element.py
parent829ad562bb09e7e396320cd902263ec8b73f89dd (diff)
downloadenigma2-194615a88fac0c4259b3c2217c8e13372b7c3b86.tar.gz
enigma2-194615a88fac0c4259b3c2217c8e13372b7c3b86.zip
implement proper 'destroy' functions in Converter
Diffstat (limited to 'lib/python/Components/Element.py')
-rw-r--r--lib/python/Components/Element.py9
1 files changed, 7 insertions, 2 deletions
diff --git a/lib/python/Components/Element.py b/lib/python/Components/Element.py
index baab4cfb..437d934b 100644
--- a/lib/python/Components/Element.py
+++ b/lib/python/Components/Element.py
@@ -48,11 +48,13 @@ class Element(object):
# we should not disconnect from upstream if
# there are still elements depending on us.
assert len(self.downstream_elements) == 0, "there are still downstream elements left"
-
+
# Sources don't have a source themselves. don't do anything here.
if self.source is not None:
self.source.disconnectDownstream(self)
-
+ # sources are owned by the Screen, so don't destroy them here.
+ self.destroy()
+
def disconnectDownstream(self, downstream):
self.downstream_elements.remove(downstream)
if self.master == downstream:
@@ -89,3 +91,6 @@ class Element(object):
def doSuspend(self, suspend):
pass
+
+ def destroy(self):
+ pass