🐛 fix leak for strings
This commit is contained in:
parent
88ea375f39
commit
3675770d22
@ -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);
|
||||
}
|
||||
|
||||
@ -4705,7 +4705,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);
|
||||
}
|
||||
|
||||
Loading…
Reference in New Issue
Block a user