forked from mirror/OpenTTD
(svn r23901) -Fix: memory leak everytime one clicked a savegame in the load GUI
This commit is contained in:
@@ -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;
|
||||
|
||||
|
Reference in New Issue
Block a user