diff options
author | smatz <smatz@openttd.org> | 2010-09-06 18:20:07 +0000 |
---|---|---|
committer | smatz <smatz@openttd.org> | 2010-09-06 18:20:07 +0000 |
commit | 82949024f18811120bfc35da04fbd4b22f7f1d45 (patch) | |
tree | c271f75b712da1f93b67c2d3ea315ca5d9399d31 /src/openttd.cpp | |
parent | a71cc228b250d4ba95fc2a0fd4957957811a60dd (diff) | |
download | openttd-82949024f18811120bfc35da04fbd4b22f7f1d45.tar.xz |
(svn r20758) -Fix: when leaving the program, current newgrf config would leak, causing valgrind warnings
Diffstat (limited to 'src/openttd.cpp')
-rw-r--r-- | src/openttd.cpp | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/src/openttd.cpp b/src/openttd.cpp index 25387f41c..e4f85a302 100644 --- a/src/openttd.cpp +++ b/src/openttd.cpp @@ -59,6 +59,7 @@ #include "rail_gui.h" #include "core/backup_type.hpp" #include "hotkeys.h" +#include "newgrf.h" #include "town.h" @@ -347,6 +348,8 @@ static void ShutdownGame() free(_config_file); #endif + ResetNewGRFData(); + /* Close all and any open filehandles */ FioCloseAll(); } |