diff options
author | Paul Gilbert | 2011-11-21 19:38:52 +1100 |
---|---|---|
committer | Paul Gilbert | 2011-11-21 19:38:52 +1100 |
commit | 1e80ac08858ecbf2c32f906f4eb0552bf5bee666 (patch) | |
tree | 74df43fcb03c3a40ceb784e44e1576e8bf99a991 /engines/cruise | |
parent | e8aa812608a602df27e7e2536d3ee397601a0482 (diff) | |
download | scummvm-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.cpp | 1 |
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; } |