Memory leak:hdd,hintBox

git-svn-id: file:///home/bas/coolstream_public_svn/THIRDPARTY/applications/neutrino-experimental@32 e54a6e83-5905-42d5-8d5c-058d10e6a962
This commit is contained in:
satbaby
2009-12-08 16:19:24 +00:00
parent 8402248f8e
commit d6dc7761af

View File

@@ -2545,6 +2545,7 @@ int CNeutrinoApp::run(int argc, char **argv)
system("mount /media/sdb1 2> /dev/null");
CHDDDestExec * hdd = new CHDDDestExec();
hdd->exec(NULL, "");
delete hdd;
#endif
InitZapper();
@@ -4108,6 +4109,7 @@ int CNeutrinoApp::exec(CMenuTarget* parent, const std::string & actionKey)
networkConfig.automatic_start = (network_automatic_start == 1);
networkConfig.commitConfig();
saveSetup(NEUTRINO_SETTINGS_FILE);
delete hintBox;
delete frameBuffer;
execvp(global_argv[0], global_argv); // no return if successful
exit(1);