From e1e2b01c845c372246d68350b52ce910bfb45800 Mon Sep 17 00:00:00 2001 From: Christoph Oelckers Date: Mon, 6 Jan 2020 20:01:18 +0100 Subject: [PATCH] - fixed memory leak in savegame code. --- source/common/compositesaveame.h | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/source/common/compositesaveame.h b/source/common/compositesaveame.h index 00adeefed..85ebe6a8d 100644 --- a/source/common/compositesaveame.h +++ b/source/common/compositesaveame.h @@ -17,9 +17,7 @@ class CompositeSavegameWriter public: void Clear() { - subfiles.Reset(); - subfilenames.Reset(); - isCompressed.Reset(); + subfiles.DeleteAndClear(); } void SetFileName(const char* fn) {