Update BulletUrdfImporter.cpp

use free (and not delete), since b3ImportMeshUtility/stbi_load uses malloc (and not new)
This commit is contained in:
erwincoumans authored and GitHub committed 2016-09-07 16:02:16 -07:00
1 parent 4944aca28b
commit ba2f522e05
1 file changed
+1 -1
@@ -1001,7 +1001,7 @@ int BulletURDFImporter::convertLinkVisualShapes(int linkIndex, const char* pathP
//delete textures //delete textures
for (int i=0;i<textures.size();i++) for (int i=0;i<textures.size();i++)
{ {
delete textures[i].textureData; free( textures[i].textureData);
} }
return graphicsIndex; return graphicsIndex;
} }