aboutsummaryrefslogtreecommitdiffstats
path: root/src/gfile
diff options
context:
space:
mode:
Diffstat (limited to 'src/gfile')
-rw-r--r--src/gfile/gfile.c6
1 files changed, 5 insertions, 1 deletions
diff --git a/src/gfile/gfile.c b/src/gfile/gfile.c
index 853b7455..a7731130 100644
--- a/src/gfile/gfile.c
+++ b/src/gfile/gfile.c
@@ -69,7 +69,11 @@ void _gfileInit(void) {
void _gfileDeinit(void)
{
- /* ToDo */
+ GFILE * f;
+ for (f = gfileArr; f < &gfileArr[GFILE_MAX_GFILES]; f++) {
+ if (f->flags & GFILEFLG_OPEN)
+ gfileClose(f);
+ }
}
/**