In Assimp: fixed memory leak in RemoveRedundantMaterial post process step

pull/261/head
Léo Terziman 2014-01-17 10:20:38 +01:00
parent ad55783f56
commit 53eb9dca32
1 changed files with 1 additions and 0 deletions

View File

@ -142,6 +142,7 @@ void RemoveRedundantMatsProcess::Execute( aiScene* pScene)
// if the material is not referenced ... remove it
if (!abReferenced[i]) {
++unreferenced;
delete pScene->mMaterials[i];
continue;
}