forgot to destroy object

This commit is contained in:
Niels committed 2015-02-15 22:58:35 +01:00
1 parent 568d75954e
commit b387761e12
2 files changed
+5 -3

No files matched your search

+1
View File
@@ -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;