PyBullet: fixed a few more file leaks

This commit is contained in:
Erwin Coumans
2018-12-04 19:58:24 +01:00
parent d4db50f668
commit e3c03401c8
4 changed files with 4 additions and 1 deletions

View File

@@ -1,4 +1,3 @@
#ifndef LOAD_MESH_FROM_STL_H
#define LOAD_MESH_FROM_STL_H
@@ -46,6 +45,7 @@ static GLInstanceGraphicsShape* LoadMeshFromSTL(const char* relativeFileName, st
if (expectedBinaryFileSize != size)
{
delete[] memoryBuffer;
fileIO->fileClose(fileHandle);
return 0;
}
}