2
0
Эх сурвалжийг харах

In Assimp: fixed memory leak in RemoveRedundantMaterial post process step

Léo Terziman 11 жил өмнө
parent
commit
53eb9dca32

+ 1 - 0
code/RemoveRedundantMaterials.cpp

@@ -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;
 			}