fix two memory leaks, thanks to Benoit and Ole.
This commit is contained in:
@@ -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--)
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user