fix two memory leaks, thanks to Benoit and Ole.

This commit is contained in:
erwin.coumans
2008-10-27 20:24:01 +00:00
parent 003b6fa669
commit 876009b053
2 changed files with 5 additions and 3 deletions

View File

@@ -403,7 +403,10 @@ template <typename BP_FP_INT_TYPE>
btAxisSweep3Internal<BP_FP_INT_TYPE>::~btAxisSweep3Internal()
{
if (m_raycastAccelerator)
{
m_raycastAccelerator->~btDbvtBroadphase();
btAlignedFree (m_raycastAccelerator);
}
for (int i = 2; i >= 0; i--)
{