mirror of https://github.com/OpenTTD/OpenTTD.git
(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();
|
this->Clear();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Don't leak memory at program exit
|
||||||
|
*/
|
||||||
|
~LoadCheckData()
|
||||||
|
{
|
||||||
|
this->Clear();
|
||||||
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Check whether loading the game resulted in errors.
|
* Check whether loading the game resulted in errors.
|
||||||
* @return true if errors were encountered.
|
* @return true if errors were encountered.
|
||||||
|
|
Loading…
Reference in New Issue