summaryrefslogtreecommitdiff
path: root/src/fios.cpp
diff options
context:
space:
mode:
authorrubidium <rubidium@openttd.org>2009-03-05 22:14:27 +0000
committerrubidium <rubidium@openttd.org>2009-03-05 22:14:27 +0000
commitf2f2a6d30377f5a07c2805e0412df23667c61311 (patch)
treeb99ccf7c60fa54db82906bbb421fa8df7dbdb604 /src/fios.cpp
parent7dd6f218efc73fac74245d7dbb3d5b5773f8fa2e (diff)
downloadopenttd-f2f2a6d30377f5a07c2805e0412df23667c61311.tar.xz
(svn r15623) -Fix (r15615): close the files you've opened
Diffstat (limited to 'src/fios.cpp')
-rw-r--r--src/fios.cpp1
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);
}
/**