Hi,
I am a new bie in the world of Bullet Physics. I have applied Internal Edge Utility in my project as per the bullet physics example demo "AppInternalEdgeDemo".
When I quit my project,I am getting memory leak error in following part of the code:
btTriangleInfoMap* triangleInfoMap = new btTriangleInfoMap();
btGenerateInternalEdgeInfo(trimeshShape,triangleInfoMap);
I don't have any idea how to delete( i.e. free memory) this triangleInfoMap object.
Please give your valuable suggestions...
Regards
huRRc@ne
Memory leak problem after applying "Internal Edge Utility"
Re: Memory leak problem after applying "Internal Edge Utilit
add
btTriangleInfoMap* triangleInfoMap;
as member in the header
and triangleInfoMap = new btTriangleInfoMap();
in the cpp, then delete it in the destructor.
btTriangleInfoMap* triangleInfoMap;
as member in the header
and triangleInfoMap = new btTriangleInfoMap();
in the cpp, then delete it in the destructor.