mirror of
https://github.com/tuxbox-fork-migrations/recycled-ni-neutrino.git
synced 2025-08-31 17:31:11 +02:00
src/neutrino.cpp fix possible memleak
Origin commit data
------------------
Commit: f18ec050c7
Author: Jacek Jendrzej <overx300@gmail.com>
Date: 2017-03-15 (Wed, 15 Mar 2017)
This commit is contained in:
@@ -873,7 +873,10 @@ int CNeutrinoApp::loadSetup(const char * fname)
|
||||
|
||||
// USERMENU -> in system/settings.h
|
||||
//-------------------------------------------
|
||||
|
||||
for(unsigned int i=0; i<g_settings.usermenu.size();++i){
|
||||
delete g_settings.usermenu[i];
|
||||
g_settings.usermenu[i] = NULL;
|
||||
}
|
||||
g_settings.usermenu.clear();
|
||||
if (configfile.getString("usermenu_key_red", "").empty() ||
|
||||
configfile.getString("usermenu_key_green", "").empty() ||
|
||||
@@ -4697,6 +4700,10 @@ void CNeutrinoApp::Cleanup()
|
||||
delete g_Font[i];
|
||||
g_Font[i] = NULL;
|
||||
}
|
||||
for(unsigned int i=0; i<g_settings.usermenu.size();++i){
|
||||
delete g_settings.usermenu[i];
|
||||
g_settings.usermenu[i] = NULL;
|
||||
}
|
||||
printf("cleanup 2\n");fflush(stdout);
|
||||
delete g_SignalFont; g_SignalFont = NULL;
|
||||
printf("cleanup 3\n");fflush(stdout);
|
||||
|
Reference in New Issue
Block a user