diff options
author | rubidium <rubidium@openttd.org> | 2013-11-25 09:20:35 +0000 |
---|---|---|
committer | rubidium <rubidium@openttd.org> | 2013-11-25 09:20:35 +0000 |
commit | 43edd2409e62ef90c86c227893e04d1197bc8766 (patch) | |
tree | 46d39baba97b8c839064202f627b02d2086cadf6 /src/openttd.cpp | |
parent | ee0aa389a8523a44475d192100b21b2f9b413082 (diff) | |
download | openttd-43edd2409e62ef90c86c227893e04d1197bc8766.tar.xz |
(svn r26098) -Fix: close the log file when OpenTTD was forked and finally closed
Diffstat (limited to 'src/openttd.cpp')
-rw-r--r-- | src/openttd.cpp | 7 |
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; } |