mirror of
https://github.com/tuxbox-neutrino/neutrino.git
synced 2025-08-29 00:11:14 +02:00
weather: fix possible memleak
This commit is contained in:
@@ -110,7 +110,10 @@ bool CWeather::GetWeatherDetails()
|
||||
|
||||
answer.clear();
|
||||
if (!getUrl(data, answer))
|
||||
{
|
||||
delete reader;
|
||||
return false;
|
||||
}
|
||||
|
||||
bool parsedSuccess = reader->parse(answer.c_str(), answer.c_str() + answer.size(), &DataValues, &formattedErrors);
|
||||
delete reader;
|
||||
|
Reference in New Issue
Block a user