🚑 hopefully fixed the memory leak
This commit is contained in:
parent
97559bb1b2
commit
aa8fc2a41c
2 changed files with 2 additions and 0 deletions
|
@ -403,6 +403,7 @@ class parser
|
|||
|
||||
if (keep and callback and not callback(depth, parse_event_t::value, result))
|
||||
{
|
||||
result.m_value.destroy(result.m_type);
|
||||
result.m_type = value_t::discarded;
|
||||
}
|
||||
}
|
||||
|
|
|
@ -3526,6 +3526,7 @@ class parser
|
|||
|
||||
if (keep and callback and not callback(depth, parse_event_t::value, result))
|
||||
{
|
||||
result.m_value.destroy(result.m_type);
|
||||
result.m_type = value_t::discarded;
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue