mirror of
https://github.com/tuxbox-neutrino/neutrino.git
synced 2025-08-28 16:01:20 +02:00
- miscsettings-menu: fix memleak
Signed-off-by: Thilo Graf <dbt@novatux.de>
This commit is contained in:
@@ -762,10 +762,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