mirror of
https://github.com/nlohmann/json.git
synced 2026-10-17 11:38:14 +00:00
🐛 fix leak for strings
This commit is contained in:
2 files changed
+2
-2
No files matched your search
@@ -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);
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user