mirror of
https://github.com/bulletphysics/bullet3.git
synced 2026-08-03 03:49:21 +00:00
better safe then sorry: set m_data to zeto after deallocation.
This commit is contained in:
@@ -68,8 +68,10 @@ class btAlignedObjectArray
|
||||
|
||||
SIMD_FORCE_INLINE void deallocate()
|
||||
{
|
||||
if(m_data)
|
||||
if(m_data) {
|
||||
m_allocator.deallocate(m_data);
|
||||
m_data = 0;
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user