From 5deb441a9c014fd4f88d723ba8b8a6433abbf043 Mon Sep 17 00:00:00 2001 From: JonAllee Date: Mon, 13 Feb 2017 11:25:30 -0800 Subject: [PATCH] Fix memory leak in Collada importer Affects Collada files with morph Controller Elements. --- include/assimp/anim.h | 2 ++ 1 file changed, 2 insertions(+) diff --git a/include/assimp/anim.h b/include/assimp/anim.h index 970be99..4fac3e4 100644 --- a/include/assimp/anim.h +++ b/include/assimp/anim.h @@ -477,6 +477,8 @@ struct aiAnimation { for( unsigned int a = 0; a < mNumMorphMeshChannels; a++) { delete mMorphMeshChannels[a]; } + + delete [] mMorphMeshChannels; } } #endif // __cplusplus -- 2.7.4