I'm experimenting with Bullet physics, using Ogre as the graphics engine, and BtOgre as a wrapper. Everything works fine, except that there are some strange memory leaks. With the help of a leak detector, I've found out that the problem is related to TriangleMeshShape. Doing a google search returned this thread, and the sollution described there fixed the problem for me.
I had to modify the originally empty destructor in btTriangleMeshShape.cpp to this:
Code: Select all
btTriangleMeshShape::~btTriangleMeshShape()
{
delete m_meshInterface;
}
Thanks in advance.