mirror of
https://github.com/GothenburgBitFactory/timewarrior.git
synced 2025-07-07 20:06:39 +02:00
Fix another place where json::parse() result was leaked
Signed-off-by: Shaun Ruffell <sruffell@sruffell.net>
This commit is contained in:
parent
42ede4104c
commit
29cc9e8a0a
1 changed files with 1 additions and 1 deletions
|
@ -127,7 +127,7 @@ Interval IntervalFactory::fromJson (const std::string& jsonString)
|
||||||
|
|
||||||
if (!jsonString.empty ())
|
if (!jsonString.empty ())
|
||||||
{
|
{
|
||||||
auto* json = (json::object*) json::parse (jsonString);
|
std::unique_ptr <json::object> json (dynamic_cast <json::object *> (json::parse (jsonString)));
|
||||||
|
|
||||||
json::array* tags = (json::array*) json->_data["tags"];
|
json::array* tags = (json::array*) json->_data["tags"];
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue