diff --git a/RecastDemo/Source/TestCase.cpp b/RecastDemo/Source/TestCase.cpp index be72d24..a8e3e4d 100644 --- a/RecastDemo/Source/TestCase.cpp +++ b/RecastDemo/Source/TestCase.cpp @@ -110,6 +110,7 @@ bool TestCase::load(const char* filePath) fclose(fp); if (readLen != 1) { + delete[] buf; return false; }