changeset 16062:b5824161b8e3 draft

(svn r20755) -Fix (r19975): small memory leak at program exit (happens only once)
author smatz <smatz@openttd.org>
date Mon, 06 Sep 2010 15:47:11 +0000
parents eea3c81622fe
children 4e1b5c063edd
files src/fios.h
diffstat 1 files changed, 8 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- a/src/fios.h
+++ b/src/fios.h
@@ -43,6 +43,14 @@
 	}
 
 	/**
+	 * Don't leak memory at program exit
+	 */
+	~LoadCheckData()
+	{
+		this->Clear();
+	}
+
+	/**
 	 * Check whether loading the game resulted in errors.
 	 * @return true if errors were encountered.
 	 */