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