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.