mirror of
https://github.com/recastnavigation/recastnavigation.git
synced 2026-11-18 13:56:00 +00:00
Fixed potential memory leak when loading font file.
This commit is contained in:
@@ -261,6 +261,7 @@ bool imguiRenderGLInit(const char* fontpath)
|
||||
fclose(fp);
|
||||
if (readLen != size)
|
||||
{
|
||||
free(ttfBuffer);
|
||||
return false;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user