mirror of
https://github.com/tuxbox-fork-migrations/recycled-ni-neutrino.git
synced 2025-08-28 16:01:10 +02:00
weather: fix possible memleak
Origin commit data
------------------
Commit: eed4389741
Author: Jacek Jendrzej <overx300@gmail.com>
Date: 2019-06-14 (Fri, 14 Jun 2019)
This commit is contained in:
@@ -111,7 +111,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