Merge branch 'Preview4_0' of https://github.com/TorqueGameEngines/Torque3D into Preview4_0

This commit is contained in:
Areloch 2021-11-08 12:51:13 -06:00
commit 9f51cc7e4c
2 changed files with 6 additions and 4 deletions

View file

@ -109,7 +109,10 @@ void Tokenizer::setBuffer(const char* buffer, U32 bufferSize)
void Tokenizer::setSingleTokens(const char* singleTokens)
{
if (mSingleTokens)
SAFE_DELETE(mSingleTokens);
{
free(mSingleTokens);
mSingleTokens = NULL;
}
if (singleTokens)
mSingleTokens = dStrdup(singleTokens);