Fix another place where json::parse() result was leaked

Signed-off-by: Shaun Ruffell <sruffell@sruffell.net>
This commit is contained in:
Shaun Ruffell 2020-05-10 06:18:33 -05:00 committed by lauft
parent 42ede4104c
commit 29cc9e8a0a

View file

@ -127,7 +127,7 @@ Interval IntervalFactory::fromJson (const std::string& jsonString)
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"];