zapit: fix ordering of cleanup stuff

This commit is contained in:
Stefan Seyfried
2013-05-24 16:57:16 +02:00
parent 6d64dfa134
commit c1c734f463

View File

@@ -2537,13 +2537,6 @@ void CZapit::run()
INFO("demuxes/decoders deleted");
delete CFEManager::getInstance();
INFO("frontend(s) deleted");
if (ca) {
INFO("stopping CA");
ca->Stop();
delete ca;
}
#ifdef EXIT_CLEANUP
INFO("cleanup...");
delete eventServer;
@@ -2551,6 +2544,13 @@ void CZapit::run()
delete CServiceManager::getInstance();
delete CServiceScan::getInstance();
#endif
delete CFEManager::getInstance();
INFO("frontend(s) deleted");
if (ca) {
INFO("stopping CA");
ca->Stop();
delete ca;
}
INFO("shutdown complete");
return;
}