better safe then sorry: set m_data to zeto after deallocation.

This commit is contained in:
ejcoumans
2006-12-19 23:54:02 +00:00
parent a0f320764b
commit 0710ca2e36

View File

@@ -68,8 +68,10 @@ class btAlignedObjectArray
SIMD_FORCE_INLINE void deallocate() SIMD_FORCE_INLINE void deallocate()
{ {
if(m_data) if(m_data) {
m_allocator.deallocate(m_data); m_allocator.deallocate(m_data);
m_data = 0;
}
} }