Fix mismatching de-allocation, thanks to ravi.rathnam
Fixes Issue 591
This commit is contained in:
1 parent
ccf30e8ee9
commit
ce50f11fea
1 file changed
+1
-1
@@ -69,7 +69,7 @@ void btBulletWorldImporter::deleteAllData()
|
|||||||
m_allocatedTriangleIndexArrays.clear();
|
m_allocatedTriangleIndexArrays.clear();
|
||||||
for (i=0;i<m_allocatedNames.size();i++)
|
for (i=0;i<m_allocatedNames.size();i++)
|
||||||
{
|
{
|
||||||
delete m_allocatedNames[i];
|
delete[] m_allocatedNames[i];
|
||||||
}
|
}
|
||||||
m_allocatedNames.clear();
|
m_allocatedNames.clear();
|
||||||
|
|
||||||
|
|||||||
Reference in new issue
Block a user