summaryrefslogtreecommitdiff
path: root/src/openttd.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/openttd.cpp')
-rw-r--r--src/openttd.cpp7
1 files changed, 7 insertions, 0 deletions
diff --git a/src/openttd.cpp b/src/openttd.cpp
index 4f099cfa1..ba6989765 100644
--- a/src/openttd.cpp
+++ b/src/openttd.cpp
@@ -907,6 +907,13 @@ exit_normal:
free(_ini_videodriver);
free(_ini_blitter);
+#ifdef ENABLE_NETWORK
+ extern FILE *_log_fd;
+ if (_log_fd != NULL) {
+ fclose(_log_fd);
+ }
+#endif /* ENABLE_NETWORK */
+
return ret;
}