-try to fix segfault on webtv channel - neutrino shutdown

This commit is contained in:
Jacek Jendrzej
2014-11-13 15:38:30 +01:00
parent 6e08417d40
commit b22625aa36
2 changed files with 6 additions and 3 deletions

View File

@@ -809,6 +809,9 @@ CRecordManager::~CRecordManager()
}
nextmap.clear();
durations.clear();
sm.lock();
manager = NULL;
sm.unlock();
}
CRecordManager * CRecordManager::getInstance()

View File

@@ -3199,9 +3199,6 @@ void CNeutrinoApp::ExitRun(const bool /*write_si*/, int retcode)
}
delete cHddStat::getInstance();
delete CRecordManager::getInstance();
dprintf(DEBUG_INFO, "exit\n");
StopSubtitles();
stopPlayBack();
@@ -3209,6 +3206,9 @@ void CNeutrinoApp::ExitRun(const bool /*write_si*/, int retcode)
frameBuffer->paintBackground();
videoDecoder->ShowPicture(DATADIR "/neutrino/icons/shutdown.jpg");
delete cHddStat::getInstance();
delete CRecordManager::getInstance();
CEpgScan::getInstance()->Stop();
if(g_settings.epg_save /* && timeset && g_Sectionsd->getIsTimeSet ()*/) {
g_Sectionsd->setPauseScanning(true);