In Assimp: fixed memory leak in RemoveRedundantMaterial post process step
This commit is contained in:
@@ -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;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user