From 8909a5a2da87df0624a075b7eda6be346958b17e Mon Sep 17 00:00:00 2001 From: smatz Date: Mon, 6 Sep 2010 15:47:11 +0000 Subject: [PATCH] (svn r20755) -Fix (r19975): small memory leak at program exit (happens only once) --- src/fios.h | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/src/fios.h b/src/fios.h index 1a1d9cdf82..720da6765b 100644 --- a/src/fios.h +++ b/src/fios.h @@ -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.