address 2 issues pointed out by PVS-Studio:

https://github.com/bulletphysics/bullet3/issues/1074
This commit is contained in:
Erwin Coumans
2017-04-17 10:01:44 -07:00
parent 3c22e10456
commit ad2099e107
2 changed files with 3 additions and 1 deletions

View File

@@ -46,6 +46,7 @@ static GLInstanceGraphicsShape* LoadMeshFromSTL(const char* relativeFileName)
int expectedBinaryFileSize = numTriangles* 50 + 84;
if (expectedBinaryFileSize != size)
{
delete[] memoryBuffer;
return 0;
}