From 3baec40adee073e8f38030459b1e5d42389467ba Mon Sep 17 00:00:00 2001 From: aramis_acg Date: Sat, 11 Dec 2010 15:50:14 +0000 Subject: [PATCH] # fix memory leak in Importer -- progress handler was never deleted. Thanks to dee_ment to point it out (see https://sourceforge.net/tracker/index.php?func=detail&aid=3134561&group_id=226462&atid=1067632). git-svn-id: https://assimp.svn.sourceforge.net/svnroot/assimp/trunk@877 67173fc5-114c-0410-ac8e-9d2fd5bffc1f --- code/Importer.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/code/Importer.cpp b/code/Importer.cpp index 2a59d17f4..452a81299 100644 --- a/code/Importer.cpp +++ b/code/Importer.cpp @@ -551,8 +551,9 @@ Importer::~Importer() for( unsigned int a = 0; a < pimpl->mPostProcessingSteps.size(); a++) delete pimpl->mPostProcessingSteps[a]; - // Delete the assigned IO handler + // Delete the assigned IO and progress handler delete pimpl->mIOHandler; + delete pimpl->mProgressHandler; // Kill imported scene. Destructors should do that recursivly delete pimpl->mScene;