Update BulletUrdfImporter.cpp
use free (and not delete), since b3ImportMeshUtility/stbi_load uses malloc (and not new)
This commit is contained in:
@@ -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;
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user