fix memory leak

This commit is contained in:
wise86Android
2016-01-17 00:00:43 +01:00
parent bd032488e4
commit 4af9632269
6 changed files with 65 additions and 64 deletions
+1 -1
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;