(svn r20758) -Fix: when leaving the program, current newgrf config would leak, causing valgrind warnings
This commit is contained in:
@@ -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();
|
||||
}
|
||||
|
Reference in New Issue
Block a user