From 026632ada7ab8b9ba6c443cd260f0c8286e0d515 Mon Sep 17 00:00:00 2001 From: dborth Date: Tue, 6 Oct 2009 07:21:01 +0000 Subject: [PATCH] close file --- source/ngc/fileop.cpp | 1 + 1 file changed, 1 insertion(+) diff --git a/source/ngc/fileop.cpp b/source/ngc/fileop.cpp index 0a30f81..1660c39 100644 --- a/source/ngc/fileop.cpp +++ b/source/ngc/fileop.cpp @@ -858,6 +858,7 @@ SaveFile (char * buffer, char *filepath, size_t datasize, bool silent) if(writesize != nextwrite) break; // write failure written += writesize; } + fclose (file); if(written != datasize) written = 0;