Instead of delete delete [] must be used.
pull/1269/head
Kim Kulling 2017-05-15 09:55:39 +02:00 committed by GitHub
parent ab45dc79fa
commit e5657bf0c5
1 changed files with 1 additions and 1 deletions

View File

@ -306,7 +306,7 @@ bool RemoveVCProcess::ProcessMesh(aiMesh* pMesh)
if (!pMesh->mColors[i])break;
if (configDeleteFlags & aiComponent_COLORSn(i) || b)
{
delete pMesh->mColors[i];
delete [] pMesh->mColors[i];
pMesh->mColors[i] = NULL;
ret = true;