Fix off by 1byte error on tracking string free

This commit is contained in:
Doyle Thai 2018-01-25 16:43:51 +11:00
parent 81c6f4edc3
commit b8aee7cef9

2
dqn.h
View File

@ -5748,7 +5748,7 @@ void DqnString::Free()
#endif
if (this->memAPI && this->memAPI->IsValid())
{
this->memAPI->Free(this->str, this->len);
this->memAPI->Free(this->str, (this->max + 1));
this->str = nullptr;
}