aboutsummaryrefslogtreecommitdiff
path: root/engines
diff options
context:
space:
mode:
authorD G Turner2011-12-31 00:28:27 +0000
committerD G Turner2011-12-31 00:28:27 +0000
commitb704e40bae69dcdc54b85e934ec3862d60bfdb5b (patch)
treee5094572685d9cda0c3819240e1ccd9db6e7d890 /engines
parentb89bc000d96fce9d4e977b8ad59391282e35704e (diff)
downloadscummvm-rg350-b704e40bae69dcdc54b85e934ec3862d60bfdb5b.tar.gz
scummvm-rg350-b704e40bae69dcdc54b85e934ec3862d60bfdb5b.tar.bz2
scummvm-rg350-b704e40bae69dcdc54b85e934ec3862d60bfdb5b.zip
TSAGE: Close memory leak in savegame thumbnail.
Diffstat (limited to 'engines')
-rw-r--r--engines/tsage/saveload.cpp2
1 files changed, 2 insertions, 0 deletions
diff --git a/engines/tsage/saveload.cpp b/engines/tsage/saveload.cpp
index e56968acdf..af2f3566ad 100644
--- a/engines/tsage/saveload.cpp
+++ b/engines/tsage/saveload.cpp
@@ -189,6 +189,8 @@ Common::Error Saver::restore(int slot) {
// Read in the savegame header
tSageSavegameHeader header;
readSavegameHeader(saveFile, header);
+ if (header.thumbnail)
+ header.thumbnail->free();
delete header.thumbnail;
serializer.setSaveVersion(header.version);