Update BulletUrdfImporter.cpp

use free (and not delete), since b3ImportMeshUtility/stbi_load uses malloc (and not new)
This commit is contained in:
erwincoumans
2016-09-07 16:02:16 -07:00
committed by GitHub
parent 4944aca28b
commit ba2f522e05

View File

@@ -1001,7 +1001,7 @@ int BulletURDFImporter::convertLinkVisualShapes(int linkIndex, const char* pathP
//delete textures
for (int i=0;i<textures.size();i++)
{
delete textures[i].textureData;
free( textures[i].textureData);
}
return graphicsIndex;
}