X-Git-Url: https://git.sesse.net/?a=blobdiff_plain;f=futatabi%2Futil.cpp;h=99711a6f55875c0d0156879fec32e16c24b3a18c;hb=e73b1ce52ab9e41481c6cb4f2ef0b7e59dbf406c;hp=061408d7a69781c88adfde4b4fc65e662e686464;hpb=9b7d691b4cc5db7dbfc18c82e86c1207fcac4722;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;