- miscsettings-menu: fix memleak

Signed-off-by: Thilo Graf <dbt@novatux.de>
This commit is contained in:
svenhoefer
2020-06-26 00:49:43 +02:00
committed by Thilo Graf
parent 6a92d16c67
commit fb17a1a4a5

View File

@@ -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);