Fixed potential memory leak when loading font file.

This commit is contained in:
grahamboree 2014-12-24 15:22:23 -05:00
parent 65b844170f
commit 35ac315b70

View File

@ -261,6 +261,7 @@ bool imguiRenderGLInit(const char* fontpath)
fclose(fp);
if (readLen != size)
{
free(ttfBuffer);
return false;
}