diff --git a/RecastDemo/Source/imguiRenderGL.cpp b/RecastDemo/Source/imguiRenderGL.cpp index 2c4e375..891b300 100644 --- a/RecastDemo/Source/imguiRenderGL.cpp +++ b/RecastDemo/Source/imguiRenderGL.cpp @@ -261,6 +261,7 @@ bool imguiRenderGLInit(const char* fontpath) fclose(fp); if (readLen != size) { + free(ttfBuffer); return false; }