Fixed memory leak in btDbvtBroadphase
http://code.google.com/p/bullet/issues/detail?id=66
This commit is contained in:
@@ -159,7 +159,11 @@ clear(m_profiling);
|
||||
//
|
||||
btDbvtBroadphase::~btDbvtBroadphase()
|
||||
{
|
||||
if(m_releasepaircache) btAlignedFree(m_paircache);
|
||||
if(m_releasepaircache)
|
||||
{
|
||||
m_paircache->~btOverlappingPairCache();
|
||||
btAlignedFree(m_paircache);
|
||||
}
|
||||
}
|
||||
|
||||
//
|
||||
|
||||
Reference in New Issue
Block a user