aboutsummaryrefslogtreecommitdiff
path: root/engines/gob
diff options
context:
space:
mode:
authorSven Hesse2011-05-04 01:20:18 +0200
committerSven Hesse2011-05-04 01:26:10 +0200
commit30f7cdb49ac42ecabf7abfb1030319e3ce68e9b4 (patch)
tree3942c9105e17efea12a1bc63c7be272b6e2f9272 /engines/gob
parent3797971c48e6c732304662a9bd573caf6ebff45d (diff)
downloadscummvm-rg350-30f7cdb49ac42ecabf7abfb1030319e3ce68e9b4.tar.gz
scummvm-rg350-30f7cdb49ac42ecabf7abfb1030319e3ce68e9b4.tar.bz2
scummvm-rg350-30f7cdb49ac42ecabf7abfb1030319e3ce68e9b4.zip
GOB: Plug a leak
Thanks to digitall for finding that one
Diffstat (limited to 'engines/gob')
-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() {