Fixed a potential memory leak when reading a mesh file.
This commit is contained in:
parent
91fbf05ec3
commit
ce4c63787b
@ -155,6 +155,7 @@ bool rcMeshLoaderObj::load(const char* filename)
|
|||||||
|
|
||||||
if (readLen != 1)
|
if (readLen != 1)
|
||||||
{
|
{
|
||||||
|
delete[] buf;
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user