mirror of
https://github.com/JGRennison/OpenTTD-patches.git
synced 2024-11-02 09:40:35 +00:00
(svn r20755) -Fix (r19975): small memory leak at program exit (happens only once)
This commit is contained in:
parent
8cc43828e8
commit
8909a5a2da
@ -42,6 +42,14 @@ struct LoadCheckData {
|
||||
this->Clear();
|
||||
}
|
||||
|
||||
/**
|
||||
* Don't leak memory at program exit
|
||||
*/
|
||||
~LoadCheckData()
|
||||
{
|
||||
this->Clear();
|
||||
}
|
||||
|
||||
/**
|
||||
* Check whether loading the game resulted in errors.
|
||||
* @return true if errors were encountered.
|
||||
|
Loading…
Reference in New Issue
Block a user