diff options
author | Paul Gilbert | 2011-11-21 19:38:32 +1100 |
---|---|---|
committer | Paul Gilbert | 2011-11-21 19:38:32 +1100 |
commit | e8aa812608a602df27e7e2536d3ee397601a0482 (patch) | |
tree | 7d205ed206ca31c8f4298f203813d6256831299d /engines/tsage | |
parent | 5a868a40081d7ad585f0adc6f94ffffbfaf976cf (diff) | |
download | scummvm-rg350-e8aa812608a602df27e7e2536d3ee397601a0482.tar.gz scummvm-rg350-e8aa812608a602df27e7e2536d3ee397601a0482.tar.bz2 scummvm-rg350-e8aa812608a602df27e7e2536d3ee397601a0482.zip |
TSAGE: Added explicit freeing of thumbnail surface pixels
Diffstat (limited to 'engines/tsage')
-rw-r--r-- | engines/tsage/saveload.cpp | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/engines/tsage/saveload.cpp b/engines/tsage/saveload.cpp index db52050b03..e56968acdf 100644 --- a/engines/tsage/saveload.cpp +++ b/engines/tsage/saveload.cpp @@ -290,6 +290,7 @@ void Saver::writeSavegameHeader(Common::OutSaveFile *out, tSageSavegameHeader &h ::createThumbnail(thumb, (const byte *)s.pixels, SCREEN_WIDTH, SCREEN_HEIGHT, thumbPalette); Graphics::saveThumbnail(*out, *thumb); g_globals->_screenSurface.unlockSurface(); + thumb->free(); delete thumb; // Write out the save date/time |