In Assimp: fixed memory leak in RemoveRedundantMaterial post process step
parent
ad55783f56
commit
53eb9dca32
|
@ -142,6 +142,7 @@ void RemoveRedundantMatsProcess::Execute( aiScene* pScene)
|
||||||
// if the material is not referenced ... remove it
|
// if the material is not referenced ... remove it
|
||||||
if (!abReferenced[i]) {
|
if (!abReferenced[i]) {
|
||||||
++unreferenced;
|
++unreferenced;
|
||||||
|
delete pScene->mMaterials[i];
|
||||||
continue;
|
continue;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue