fix memory leak

This commit is contained in:
wise86Android
2016-01-16 22:51:18 +01:00
parent bd032488e4
commit 4af9632269
6 changed files with 65 additions and 64 deletions

View File

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