neutrino: fix segfault on restart

git-svn-id: file:///home/bas/coolstream_public_svn/THIRDPARTY/applications/neutrino-experimental@298 e54a6e83-5905-42d5-8d5c-058d10e6a962
This commit is contained in:
seife
2010-02-07 19:17:40 +00:00
parent 36fa2483b7
commit d2f5ec90c1

View File

@@ -4178,18 +4178,20 @@ int CNeutrinoApp::exec(CMenuTarget* parent, const std::string & actionKey)
networkConfig.commitConfig(); networkConfig.commitConfig();
saveSetup(NEUTRINO_SETTINGS_FILE); saveSetup(NEUTRINO_SETTINGS_FILE);
/* this is an ugly mess :-( */
delete g_RCInput; delete g_RCInput;
delete g_Sectionsd; delete g_Sectionsd;
delete g_Timerd;
delete g_RemoteControl; delete g_RemoteControl;
delete g_fontRenderer; delete g_fontRenderer;
delete g_Zapit;
delete CVFD::getInstance();
delete hintBox; delete hintBox;
delete frameBuffer; delete frameBuffer;
stop_daemons(); stop_daemons();
/* g_Timerd, g_Zapit and CVFD are used in stop_daemons */
delete g_Timerd;
delete g_Zapit;
delete CVFD::getInstance();
execvp(global_argv[0], global_argv); // no return if successful execvp(global_argv[0], global_argv); // no return if successful
exit(1); exit(1);