diff options
author | rubidium <rubidium@openttd.org> | 2009-03-05 22:14:27 +0000 |
---|---|---|
committer | rubidium <rubidium@openttd.org> | 2009-03-05 22:14:27 +0000 |
commit | f2f2a6d30377f5a07c2805e0412df23667c61311 (patch) | |
tree | b99ccf7c60fa54db82906bbb421fa8df7dbdb604 /src/fios.cpp | |
parent | 7dd6f218efc73fac74245d7dbb3d5b5773f8fa2e (diff) | |
download | openttd-f2f2a6d30377f5a07c2805e0412df23667c61311.tar.xz |
(svn r15623) -Fix (r15615): close the files you've opened
Diffstat (limited to 'src/fios.cpp')
-rw-r--r-- | src/fios.cpp | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/src/fios.cpp b/src/fios.cpp index 3bed37b3a..11ecd7941 100644 --- a/src/fios.cpp +++ b/src/fios.cpp @@ -344,6 +344,7 @@ static void GetFileTitle(const char *file, char *title, const char *last) size_t read = fread(title, 1, last - title, f); assert(title + read <= last); title[read] = '\0'; + FioFCloseFile(f); } /** |