aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSven Hesse2011-05-04 01:20:18 +0200
committerSven Hesse2011-05-04 01:26:50 +0200
commit5b9c3a1ff87180fbef093e84282ca74f89dc1be6 (patch)
treebc3f71b628817650b416447fefc9dc66636409fb
parent63602c4ca2d223fdfbb1fc41439eef73fd22249c (diff)
downloadscummvm-rg350-5b9c3a1ff87180fbef093e84282ca74f89dc1be6.tar.gz
scummvm-rg350-5b9c3a1ff87180fbef093e84282ca74f89dc1be6.tar.bz2
scummvm-rg350-5b9c3a1ff87180fbef093e84282ca74f89dc1be6.zip
GOB: Plug a leak
Thanks to digitall for finding that one (cherry picked from commit 30f7cdb49ac42ecabf7abfb1030319e3ce68e9b4)
-rw-r--r--engines/gob/save/saveload_v6.cpp3
1 files changed, 3 insertions, 0 deletions
diff --git a/engines/gob/save/saveload_v6.cpp b/engines/gob/save/saveload_v6.cpp
index 37ac08ebea..248fe0a93f 100644
--- a/engines/gob/save/saveload_v6.cpp
+++ b/engines/gob/save/saveload_v6.cpp
@@ -284,6 +284,9 @@ SaveLoad_v6::GameHandler::GameHandler(GobEngine *vm, const char *target,
SaveLoad_v6::GameHandler::~GameHandler() {
delete _slotFile;
+
+ delete _reader;
+ delete _writer;
}
int32 SaveLoad_v6::GameHandler::getSize() {