Altren
28-05-2010 01:32:48
Looks like all static shapes in Dynamic_Demos created and never deleted - they stores in mShapes, but there's only one line in destruction code - mShapes.clear();
And rigid bodies that have pointer to shape doesn't delete it.
I found that destructor of OgreBulletCollisions::Object have commented out line "delete mShape;". So who should delete shapes?
And rigid bodies that have pointer to shape doesn't delete it.
I found that destructor of OgreBulletCollisions::Object have commented out line "delete mShape;". So who should delete shapes?