mirror of
https://github.com/bulletphysics/bullet3.git
synced 2026-09-18 00:04:29 +00:00
more memory leak fixes in demo and btSimpleBroadphase.
- deleting object (END key) needs to release - call destructor of pair cache
This commit is contained in:
@@ -77,6 +77,7 @@ btSimpleBroadphase::~btSimpleBroadphase()
|
||||
|
||||
if (m_ownsPairCache)
|
||||
{
|
||||
m_pairCache->~btOverlappingPairCache();
|
||||
btAlignedFree(m_pairCache);
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user