ソースを参照

Fix memory leak in Collada importer

Affects Collada files with morph Controller Elements.
JonAllee 8 年 前
コミット
5deb441a9c
1 ファイル変更2 行追加0 行削除
  1. 2 0
      include/assimp/anim.h

+ 2 - 0
include/assimp/anim.h

@@ -477,6 +477,8 @@ struct aiAnimation {
                 for( unsigned int a = 0; a < mNumMorphMeshChannels; a++) {
                 for( unsigned int a = 0; a < mNumMorphMeshChannels; a++) {
                         delete mMorphMeshChannels[a];
                         delete mMorphMeshChannels[a];
                 }
                 }
+            
+            delete [] mMorphMeshChannels;
         }
         }
     }
     }
 #endif // __cplusplus
 #endif // __cplusplus