diff options
author | smatz <smatz@openttd.org> | 2012-02-05 15:51:13 +0000 |
---|---|---|
committer | smatz <smatz@openttd.org> | 2012-02-05 15:51:13 +0000 |
commit | eb015cbfb62451313d99fa4829d9a712411bf002 (patch) | |
tree | 06901fd370a91bd16bd32d94dd0841ceadfe3a9c /src/fios_gui.cpp | |
parent | fbf29d5da8bc8f76c5f0c205adda7b071f439ab3 (diff) | |
download | openttd-eb015cbfb62451313d99fa4829d9a712411bf002.tar.xz |
(svn r23901) -Fix: memory leak everytime one clicked a savegame in the load GUI
Diffstat (limited to 'src/fios_gui.cpp')
-rw-r--r-- | src/fios_gui.cpp | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/fios_gui.cpp b/src/fios_gui.cpp index 3e48c10bb..5ae42897f 100644 --- a/src/fios_gui.cpp +++ b/src/fios_gui.cpp @@ -27,6 +27,7 @@ #include "landscape_type.h" #include "date_func.h" #include "core/geometry_func.hpp" +#include "gamelog.h" #include "widgets/fios_widget.h" @@ -60,7 +61,7 @@ void LoadCheckData::Clear() } companies.Clear(); - free(this->gamelog_action); + GamelogFree(this->gamelog_action, this->gamelog_actions); this->gamelog_action = NULL; this->gamelog_actions = 0; |