fix possible crash on task abort and work with new getCD return value
[enigma2.git] / lib / dvb_ci / dvbci.cpp
index 0c18e4f62079f97e0b00c67136991b8f22cef688..9a3739a09dc5841e64af2e7e205b19ba7940f000 100644 (file)
@@ -525,9 +525,9 @@ void eDVBCIInterfaces::removePMTHandler(eDVBServicePMTHandler *pmthandler)
 //                     eDebug("use_count is now %d", slot->use_count);
                        slot = next;
                }
+               // check if another service is waiting for the CI
+               recheckPMTHandlers();
        }
-       // check if another service is waiting for the CI
-       recheckPMTHandlers();
 }
 
 void eDVBCIInterfaces::gotPMT(eDVBServicePMTHandler *pmthandler)
@@ -908,6 +908,7 @@ eDVBCISlot::eDVBCISlot(eMainloop *context, int nr)
 
 eDVBCISlot::~eDVBCISlot()
 {
+       delete notifier;
 }
 
 void eDVBCISlot::setAppManager( eDVBCIApplicationManagerSession *session )