Merge pull request #1180 from JonAllee/Memory-Fix
Fix memory leak in Collada importerpull/1186/head
commit
2afeddd5cb
|
@ -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
|
||||||
|
|
Loading…
Reference in New Issue