mirror of
https://github.com/tuxbox-neutrino/neutrino.git
synced 2025-08-28 07:51:19 +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();
|
||||
res = m->exec(NULL, "");
|
||||
|
||||
delete selector;
|
||||
|
||||
if (!m->gotAction())
|
||||
return res;
|
||||
|
||||
delete selector;
|
||||
}
|
||||
g_settings.weather_location = location[select].value;
|
||||
g_settings.weather_city = std::string(location[select].key);
|
||||
|
Reference in New Issue
Block a user