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:
vanhofen
2020-06-26 00:49:43 +02:00
parent b73353118a
commit 22c9e44ca0

View File

@@ -759,10 +759,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);