diff options
author | Paul Gilbert | 2018-02-12 21:24:10 -0500 |
---|---|---|
committer | Paul Gilbert | 2018-02-12 21:24:10 -0500 |
commit | 565719f3fa6cd06740afafee04d267dd63fe0267 (patch) | |
tree | 362f0a0f62677a8c628d0a583c104c57294ea52e /engines/xeen | |
parent | 519f52a6351e2d7053a421d29fbf89b20e3f3f86 (diff) | |
download | scummvm-rg350-565719f3fa6cd06740afafee04d267dd63fe0267.tar.gz scummvm-rg350-565719f3fa6cd06740afafee04d267dd63fe0267.tar.bz2 scummvm-rg350-565719f3fa6cd06740afafee04d267dd63fe0267.zip |
XEEN: Fix memory leak loading savegames
Diffstat (limited to 'engines/xeen')
-rw-r--r-- | engines/xeen/saves.cpp | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/engines/xeen/saves.cpp b/engines/xeen/saves.cpp index f94a0fa50d..40be1fe379 100644 --- a/engines/xeen/saves.cpp +++ b/engines/xeen/saves.cpp @@ -216,6 +216,7 @@ Common::Error SavesManager::loadGameState(int slot) { map._loadDarkSide = files._isDarkCc; map.load(party._mazeId); + delete saveFile; return Common::kNoError; } |