summaryrefslogtreecommitdiff
path: root/src/fios.h
diff options
context:
space:
mode:
authorsmatz <smatz@openttd.org>2010-09-06 15:47:11 +0000
committersmatz <smatz@openttd.org>2010-09-06 15:47:11 +0000
commit8909a5a2da87df0624a075b7eda6be346958b17e (patch)
tree1f5765037900db9cc0c61fbebc15fa6f4eb561b7 /src/fios.h
parent8cc43828e8cbc248e8b03cdad0381caa63725888 (diff)
downloadopenttd-8909a5a2da87df0624a075b7eda6be346958b17e.tar.xz
(svn r20755) -Fix (r19975): small memory leak at program exit (happens only once)
Diffstat (limited to 'src/fios.h')
-rw-r--r--src/fios.h8
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.
*/