- try to fix segfault on neutrino shutdown

This commit is contained in:
striper
2014-11-12 20:22:03 +01:00
committed by svenhoefer
parent 52397f7df6
commit 86c126c937

View File

@@ -3909,6 +3909,7 @@ void stop_daemons(bool stopall, bool for_flash)
} }
if (for_flash) { if (for_flash) {
delete cHddStat::getInstance();
delete CRecordManager::getInstance(); delete CRecordManager::getInstance();
delete videoDemux; delete videoDemux;
int ret = my_system(4, "mount", "-no", "remount,ro", "/"); int ret = my_system(4, "mount", "-no", "remount,ro", "/");
@@ -3930,6 +3931,7 @@ void sighandler (int signum)
switch (signum) { switch (signum) {
case SIGTERM: case SIGTERM:
case SIGINT: case SIGINT:
delete cHddStat::getInstance();
delete CRecordManager::getInstance(); delete CRecordManager::getInstance();
//CNeutrinoApp::getInstance()->saveSetup(NEUTRINO_SETTINGS_FILE); //CNeutrinoApp::getInstance()->saveSetup(NEUTRINO_SETTINGS_FILE);
stop_daemons(); stop_daemons();