X-Git-Url: https://git.sesse.net/?a=blobdiff_plain;f=futatabi%2Futil.cpp;h=99711a6f55875c0d0156879fec32e16c24b3a18c;hb=35fa8cce99a5d224609bde5bef15d13367506804;hp=061408d7a69781c88adfde4b4fc65e662e686464;hpb=6e116a6bbeb2c047a3bfb084395ec601ce211e6c;p=nageru diff --git a/futatabi/util.cpp b/futatabi/util.cpp index 061408d..99711a6 100644 --- a/futatabi/util.cpp +++ b/futatabi/util.cpp @@ -16,6 +16,7 @@ Flow read_flow(const char *filename) unique_ptr flow(new Vec2[width * height]); fread(flow.get(), width * height * sizeof(Vec2), 1, flowfp); + fclose(flowfp); Flow ret; ret.width = width;