aboutsummaryrefslogtreecommitdiff
path: root/lib/dvb_ci/dvbci.cpp
diff options
context:
space:
mode:
authorAndreas Monzner <andreas.monzner@multimedia-labs.de>2006-01-12 15:34:09 +0000
committerAndreas Monzner <andreas.monzner@multimedia-labs.de>2006-01-12 15:34:09 +0000
commit5472356361bab323ec1f3ef0db586c2402aeaaaa (patch)
treebff54011862c17fb4a7b4bd1cf93f94067e3ac68 /lib/dvb_ci/dvbci.cpp
parent54aa4eba0f97cfb1aa4d2c23cda7271520d14f5d (diff)
downloadenigma2-5472356361bab323ec1f3ef0db586c2402aeaaaa.tar.gz
enigma2-5472356361bab323ec1f3ef0db586c2402aeaaaa.zip
fix memleaks (use smartpointers)
Diffstat (limited to 'lib/dvb_ci/dvbci.cpp')
-rw-r--r--lib/dvb_ci/dvbci.cpp3
1 files changed, 3 insertions, 0 deletions
diff --git a/lib/dvb_ci/dvbci.cpp b/lib/dvb_ci/dvbci.cpp
index 80573e89..c3f91482 100644
--- a/lib/dvb_ci/dvbci.cpp
+++ b/lib/dvb_ci/dvbci.cpp
@@ -73,6 +73,8 @@ int eDVBCIInterfaces::reset(int slotid)
if( (slot = getSlot(slotid)) == 0 )
return -1;
+ eDVBCISession::deleteSessions(slot);
+
return slot->reset();
}
@@ -299,6 +301,7 @@ void eDVBCISlot::data(int what)
state = stateRemoved;
enableTS(0);
printf("ci removed\n");
+ eDVBCISession::deleteSessions(this);
notifier->setRequested(eSocketNotifier::Read);
//HACK
eDVBCI_UI::getInstance()->setState(0,0);