Fixed potential memory leak deserializing an InputGeom.
This commit is contained in:
parent
ce4c63787b
commit
0482a3104c
@ -178,6 +178,7 @@ bool InputGeom::load(rcContext* ctx, const char* filePath)
|
|||||||
fclose(fp);
|
fclose(fp);
|
||||||
if (readLen != 1)
|
if (readLen != 1)
|
||||||
{
|
{
|
||||||
|
delete[] buf;
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user