try to fix segfault on neutrino shutdown

Origin commit data
------------------
Branch: ni/coolstream
Commit: 86c126c937
Author: gixxpunk <thomas.harfmann@gmail.com>
Date: 2014-11-12 (Wed, 12 Nov 2014)

Origin message was:
------------------
- try to fix segfault on neutrino shutdown

------------------
No further description and justification available within origin commit message!

------------------
This commit was generated by Migit
This commit is contained in:
gixxpunk
2014-11-12 20:22:03 +01:00
committed by vanhofen
parent 559b27ccfe
commit 321d9b6f4b

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();