aboutsummaryrefslogtreecommitdiff
path: root/engines/cruise
diff options
context:
space:
mode:
authorPaul Gilbert2011-11-21 19:38:52 +1100
committerPaul Gilbert2011-11-21 19:38:52 +1100
commit1e80ac08858ecbf2c32f906f4eb0552bf5bee666 (patch)
tree74df43fcb03c3a40ceb784e44e1576e8bf99a991 /engines/cruise
parente8aa812608a602df27e7e2536d3ee397601a0482 (diff)
downloadscummvm-rg350-1e80ac08858ecbf2c32f906f4eb0552bf5bee666.tar.gz
scummvm-rg350-1e80ac08858ecbf2c32f906f4eb0552bf5bee666.tar.bz2
scummvm-rg350-1e80ac08858ecbf2c32f906f4eb0552bf5bee666.zip
CRUISE: Added explicit freeing of thumbnail surface pixels
Diffstat (limited to 'engines/cruise')
-rw-r--r--engines/cruise/saveload.cpp1
1 files changed, 1 insertions, 0 deletions
diff --git a/engines/cruise/saveload.cpp b/engines/cruise/saveload.cpp
index c3d1ea6643..e2bd1ebc34 100644
--- a/engines/cruise/saveload.cpp
+++ b/engines/cruise/saveload.cpp
@@ -84,6 +84,7 @@ void writeSavegameHeader(Common::OutSaveFile *out, CruiseSavegameHeader &header)
Graphics::Surface *thumb = new Graphics::Surface();
::createThumbnail(thumb, globalScreen, 320, 200, workpal);
Graphics::saveThumbnail(*out, *thumb);
+ thumb->free();
delete thumb;
}