diff options
author | smatz <smatz@openttd.org> | 2010-09-06 15:47:11 +0000 |
---|---|---|
committer | smatz <smatz@openttd.org> | 2010-09-06 15:47:11 +0000 |
commit | 8909a5a2da87df0624a075b7eda6be346958b17e (patch) | |
tree | 1f5765037900db9cc0c61fbebc15fa6f4eb561b7 /src | |
parent | 8cc43828e8cbc248e8b03cdad0381caa63725888 (diff) | |
download | openttd-8909a5a2da87df0624a075b7eda6be346958b17e.tar.xz |
(svn r20755) -Fix (r19975): small memory leak at program exit (happens only once)
Diffstat (limited to 'src')
-rw-r--r-- | src/fios.h | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/src/fios.h b/src/fios.h index 1a1d9cdf8..720da6765 100644 --- a/src/fios.h +++ b/src/fios.h @@ -43,6 +43,14 @@ struct LoadCheckData { } /** + * Don't leak memory at program exit + */ + ~LoadCheckData() + { + this->Clear(); + } + + /** * Check whether loading the game resulted in errors. * @return true if errors were encountered. */ |