You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I checked to make sure that this issue has not already been filed.
Environment
DART version: master
OS name and version name(or number): Ubuntu 16.04
compiler name and version number: GCC 5.4
Hi all,
I have identified 3 leaks coming from the usage of Assimp's API.
In the destructor of MeshShape, delete mMesh; should be replaced by aiReleaseImport(mMesh); . The reason is that the memory associated to this mesh is stored and managed by the Importer used to create this mesh, aiReleaseImport will clean all this for you. See here http://assimp.sourceforge.net/lib_html/usage.html
After fixing these 3 leaks (plus one directly in Assimp assimp/assimp#1934 ) I have no more memory leak according to valgrind.
Let me know if you need more details.
I hope this will help you.
The text was updated successfully, but these errors were encountered:
Bug Report
Environment
Hi all,
I have identified 3 leaks coming from the usage of Assimp's API.
In the destructor of MeshShape,
delete mMesh;
should be replaced byaiReleaseImport(mMesh);
. The reason is that the memory associated to this mesh is stored and managed by the Importer used to create this mesh, aiReleaseImport will clean all this for you. See here http://assimp.sourceforge.net/lib_html/usage.htmldart/dart/dynamics/MeshShape.cpp
Line 148 in 36a6a48
The propertyStore instanciated here
dart/dart/dynamics/MeshShape.cpp
Line 358 in 36a6a48
is never freed. I suggest to add
aiReleasePropertyStore(propertyStore);
at the end of the loadMesh function.The aiFile instanciated here
dart/dart/dynamics/AssimpInputResourceAdaptor.cpp
Line 247 in 36a6a48
is not freed by the close protocol .
I have added
delete _file;
after this linedart/dart/dynamics/AssimpInputResourceAdaptor.cpp
Line 261 in 36a6a48
and it solves my memory leaks issue.
After fixing these 3 leaks (plus one directly in Assimp assimp/assimp#1934 ) I have no more memory leak according to valgrind.
Let me know if you need more details.
I hope this will help you.
The text was updated successfully, but these errors were encountered: