Probable bug in OgreBulletDynamics::VehicleTuning

dangerdaveCS

24-02-2010 16:50:29

I'm only just finding my feet with Ogre, Bullet and OgreBullet. Today I came up against a memory leak I just could not fathom. I finally traced it to the fact that OgreBulletDynamics::VehicleTuning allocates a btRaycastVehicle::btVehicleTuning in its constructor, but does not delete it in its destructor.

Perhaps the btVehicleTuning object is meant to be deallocated externally and I've just not got my main OgreBullet objects set up correct, but I tentatively suspect this is indeed a bug...?

Fish

02-03-2010 02:40:38

Sounds like it's a bug.

Can you submit a patch to the tracker?

Fish

03-03-2010 02:08:30

I fixed it in SVN. Please give it a try and let me know if it works.

-Fish