summaryrefslogtreecommitdiff
path: root/src/fios.h
diff options
context:
space:
mode:
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.
*/