From 53eb9dca320430a4bac63bf6e76bad51a5686784 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?L=C3=A9o=20Terziman?= Date: Fri, 17 Jan 2014 10:20:38 +0100 Subject: [PATCH] In Assimp: fixed memory leak in RemoveRedundantMaterial post process step --- code/RemoveRedundantMaterials.cpp | 1 + 1 file changed, 1 insertion(+) diff --git a/code/RemoveRedundantMaterials.cpp b/code/RemoveRedundantMaterials.cpp index 398fea4b0..2285d06b4 100644 --- a/code/RemoveRedundantMaterials.cpp +++ b/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; }