(svn r23901) -Fix: memory leak everytime one clicked a savegame in the load GUI

This commit is contained in:
smatz
2012-02-05 15:51:13 +00:00
parent fbf29d5da8
commit eb015cbfb6
3 changed files with 17 additions and 8 deletions

View File

@@ -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;