better fix for memory issue of BulletMultiThreaded
See Issue 271 and http://www.bulletphysics.org/Bullet/phpBB3/viewtopic.php?p=&f=9&t=4043
This commit is contained in:
@@ -440,6 +440,16 @@ btCriticalSection* Win32ThreadSupport::createCriticalSection()
|
||||
return cs;
|
||||
}
|
||||
|
||||
void Win32ThreadSupport::deleteBarrier(btBarrier* barrier)
|
||||
{
|
||||
barrier->~btBarrier();
|
||||
btAlignedFree(barrier);
|
||||
}
|
||||
|
||||
void Win32ThreadSupport::deleteCriticalSection(btCriticalSection* criticalSection)
|
||||
{
|
||||
criticalSection->~btCriticalSection();
|
||||
}
|
||||
|
||||
|
||||
#endif //USE_WIN32_THREADING
|
||||
|
||||
Reference in New Issue
Block a user