🐛 fix leak for strings

This commit is contained in:
Niels Lohmann 2021-07-15 13:12:21 +02:00
parent 0f8666ecdc
commit 0011cd1b72
No known key found for this signature in database
GPG Key ID: 7F3CEA63AE251B69
2 changed files with 2 additions and 2 deletions

View File

@ -238,7 +238,7 @@ void to_json(BasicJsonType& j, const CompatibleString& s)
{
if (!j.is_null())
{
j = nullptr;
j = BasicJsonType();
}
external_constructor<value_t::string>::construct(j, s);
}

View File

@ -4696,7 +4696,7 @@ void to_json(BasicJsonType& j, const CompatibleString& s)
{
if (!j.is_null())
{
j = nullptr;
j = BasicJsonType();
}
external_constructor<value_t::string>::construct(j, s);
}