fix gcc warnings about no newline at end of file
[blender.git] / extern / bullet2 / src / LinearMath / btAlignedObjectArray.h
index 79469c03c293d0eee30698fcea073ec629e43cc4..3bfdb36f4c7a2809892cd637c513d03ef8df7fa5 100644 (file)
@@ -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;
+                       }
                }
 
 
@@ -172,4 +174,4 @@ class btAlignedObjectArray
 
 };
 
-#endif //BT_OBJECT_ARRAY__
\ No newline at end of file
+#endif //BT_OBJECT_ARRAY__