summaryrefslogtreecommitdiff
path: root/src/fios_gui.cpp
diff options
context:
space:
mode:
authorsmatz <smatz@openttd.org>2012-02-05 15:51:13 +0000
committersmatz <smatz@openttd.org>2012-02-05 15:51:13 +0000
commiteb015cbfb62451313d99fa4829d9a712411bf002 (patch)
tree06901fd370a91bd16bd32d94dd0841ceadfe3a9c /src/fios_gui.cpp
parentfbf29d5da8bc8f76c5f0c205adda7b071f439ab3 (diff)
downloadopenttd-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.cpp3
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;