mirror of
https://github.com/tuxbox-fork-migrations/recycled-ni-neutrino.git
synced 2025-08-28 16:01:10 +02:00
miscsettings-menu: fix memleak
Origin commit data
------------------
Branch: ni/coolstream
Commit: a93b307c15
Author: vanhofen <vanhofen@gmx.de>
Date: 2020-06-26 (Fri, 26 Jun 2020)
Origin message was:
------------------
- miscsettings-menu: fix memleak
------------------
No further description and justification available within origin commit message!
------------------
This commit was generated by Migit
This commit is contained in:
@@ -759,10 +759,10 @@ int CMiscMenue::showMiscSettingsSelectWeatherLocation()
|
|||||||
m->enableSaveScreen();
|
m->enableSaveScreen();
|
||||||
res = m->exec(NULL, "");
|
res = m->exec(NULL, "");
|
||||||
|
|
||||||
|
delete selector;
|
||||||
|
|
||||||
if (!m->gotAction())
|
if (!m->gotAction())
|
||||||
return res;
|
return res;
|
||||||
|
|
||||||
delete selector;
|
|
||||||
}
|
}
|
||||||
g_settings.weather_location = location[select].value;
|
g_settings.weather_location = location[select].value;
|
||||||
g_settings.weather_city = std::string(location[select].key);
|
g_settings.weather_city = std::string(location[select].key);
|
||||||
|
Reference in New Issue
Block a user