From 304c3b2449df7c03bdee31987fd0af1f77e6337c Mon Sep 17 00:00:00 2001 From: hybrid Date: Tue, 22 Apr 2008 16:12:24 +0000 Subject: [PATCH] Fixed mem leak. git-svn-id: svn://svn.code.sf.net/p/irrlicht/code/trunk@1319 dfc29bdd-3216-0410-991c-e03cc46cb475 --- source/Irrlicht/COBJMeshFileLoader.cpp | 1 + 1 file changed, 1 insertion(+) diff --git a/source/Irrlicht/COBJMeshFileLoader.cpp b/source/Irrlicht/COBJMeshFileLoader.cpp index 38114c2f..2b83fb4c 100644 --- a/source/Irrlicht/COBJMeshFileLoader.cpp +++ b/source/Irrlicht/COBJMeshFileLoader.cpp @@ -248,6 +248,7 @@ IAnimatedMesh* COBJMeshFileLoader::createMesh(io::IReadFile* file) tmp.addMeshBuffer(Materials[m]->Meshbuffer); IMesh* tangentMesh = SceneManager->getMeshManipulator()->createMeshWithTangents(&tmp); mesh->addMeshBuffer(tangentMesh->getMeshBuffer(0)); + tangentMesh->drop(); } else mesh->addMeshBuffer( Materials[m]->Meshbuffer );