[Bf-blender-cvs] SVN commit: /data/svn/bf-blender [17102] trunk/blender/extern/bullet2/src/ BulletSoftBody/btSoftBodyRigidBodyCollisionConfiguration.cpp: BGE bug #17858 fixed: [SHOWSTOPPER] BGE Memory leak.
Benoit Bolsee
benoit.bolsee at online.be
Sat Oct 18 20:37:58 CEST 2008
Revision: 17102
http://projects.blender.org/plugins/scmsvn/viewcvs.php?view=rev&root=bf-blender&revision=17102
Author: ben2610
Date: 2008-10-18 20:37:58 +0200 (Sat, 18 Oct 2008)
Log Message:
-----------
BGE bug #17858 fixed: [SHOWSTOPPER] BGE Memory leak. The memory leak has been identified and fixed in bullet.
Modified Paths:
--------------
trunk/blender/extern/bullet2/src/BulletSoftBody/btSoftBodyRigidBodyCollisionConfiguration.cpp
Modified: trunk/blender/extern/bullet2/src/BulletSoftBody/btSoftBodyRigidBodyCollisionConfiguration.cpp
===================================================================
--- trunk/blender/extern/bullet2/src/BulletSoftBody/btSoftBodyRigidBodyCollisionConfiguration.cpp 2008-10-18 13:33:27 UTC (rev 17101)
+++ trunk/blender/extern/bullet2/src/BulletSoftBody/btSoftBodyRigidBodyCollisionConfiguration.cpp 2008-10-18 18:37:58 UTC (rev 17102)
@@ -62,6 +62,7 @@
collisionAlgorithmMaxElementSize = btMax(collisionAlgorithmMaxElementSize,maxSize2);
if (collisionAlgorithmMaxElementSize > curElemSize)
{
+ m_collisionAlgorithmPool->~btPoolAllocator();
btAlignedFree(m_collisionAlgorithmPool);
void* mem = btAlignedAlloc(sizeof(btPoolAllocator),16);
m_collisionAlgorithmPool = new(mem) btPoolAllocator(collisionAlgorithmMaxElementSize,constructionInfo.m_defaultMaxCollisionAlgorithmPoolSize);
More information about the Bf-blender-cvs
mailing list