From e208f992892c5a061c8a6a9f2ad3d6843da917dc Mon Sep 17 00:00:00 2001 From: "erwin.coumans@gmail.com" Date: Sat, 8 Sep 2012 20:05:53 +0000 Subject: [PATCH] clear all arrays when deleting data. Fixes Issue 645. --- .../BulletWorldImporter/btBulletWorldImporter.cpp | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) diff --git a/Extras/Serialize/BulletWorldImporter/btBulletWorldImporter.cpp b/Extras/Serialize/BulletWorldImporter/btBulletWorldImporter.cpp index e3e363b8d..3714f4817 100644 --- a/Extras/Serialize/BulletWorldImporter/btBulletWorldImporter.cpp +++ b/Extras/Serialize/BulletWorldImporter/btBulletWorldImporter.cpp @@ -123,27 +123,32 @@ void btBulletWorldImporter::deleteAllData() { btAlignedFree(m_indexArrays[i]); } + m_indexArrays.clear(); for (i=0;i