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