diff options
author | RichieSams | 2013-09-22 15:47:16 -0500 |
---|---|---|
committer | RichieSams | 2013-09-22 15:47:16 -0500 |
commit | 713baa37695104e2aa23c4e821b2aeb5ce41a576 (patch) | |
tree | 7c108b86cdd53655f4806a023067e158fbc50eea | |
parent | 9fefed67f420b2097d43592850947144b2630b3d (diff) | |
download | scummvm-rg350-713baa37695104e2aa23c4e821b2aeb5ce41a576.tar.gz scummvm-rg350-713baa37695104e2aa23c4e821b2aeb5ce41a576.tar.bz2 scummvm-rg350-713baa37695104e2aa23c4e821b2aeb5ce41a576.zip |
ZVISION: Fix memory leak in SaveManager
-rw-r--r-- | engines/zvision/save_manager.cpp | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/engines/zvision/save_manager.cpp b/engines/zvision/save_manager.cpp index dbed109d51..631885e5ae 100644 --- a/engines/zvision/save_manager.cpp +++ b/engines/zvision/save_manager.cpp @@ -80,6 +80,7 @@ void SaveManager::saveGame(uint slot, const Common::String &saveName) { // Cleanup delete[] buffer; file->finalize(); + delete file; } void SaveManager::autoSave() { @@ -96,7 +97,9 @@ void SaveManager::autoSave() { writeSaveGameData(file); + // Cleanup file->finalize(); + delete file; } void SaveManager::writeSaveGameData(Common::OutSaveFile *file) { |