forgot to destroy object
This commit is contained in:
parent
568d75954e
commit
b387761e12
2 changed files with 5 additions and 3 deletions
|
@ -500,6 +500,7 @@ class basic_json
|
|||
case (value_t::string):
|
||||
{
|
||||
Allocator<string_t> alloc;
|
||||
alloc.destroy(m_value.string);
|
||||
alloc.deallocate(m_value.string, 1);
|
||||
m_value.string = nullptr;
|
||||
|
||||
|
|
|
@ -500,6 +500,7 @@ class basic_json
|
|||
case (value_t::string):
|
||||
{
|
||||
Allocator<string_t> alloc;
|
||||
alloc.destroy(m_value.string);
|
||||
alloc.deallocate(m_value.string, 1);
|
||||
m_value.string = nullptr;
|
||||
|
||||
|
|
Loading…
Reference in a new issue