[Scummvm-cvs-logs] scummvm master -> 1e80ac08858ecbf2c32f906f4eb0552bf5bee666

dreammaster dreammaster at scummvm.org
Mon Nov 21 09:39:39 CET 2011


This automated email contains information about 2 new commits which have been
pushed to the 'scummvm' repo located at https://github.com/scummvm/scummvm .

Summary:
e8aa812608 TSAGE: Added explicit freeing of thumbnail surface pixels
1e80ac0885 CRUISE: Added explicit freeing of thumbnail surface pixels


Commit: e8aa812608a602df27e7e2536d3ee397601a0482
    https://github.com/scummvm/scummvm/commit/e8aa812608a602df27e7e2536d3ee397601a0482
Author: Paul Gilbert (dreammaster at scummvm.org)
Date: 2011-11-21T00:38:32-08:00

Commit Message:
TSAGE: Added explicit freeing of thumbnail surface pixels

Changed paths:
    engines/tsage/saveload.cpp



diff --git a/engines/tsage/saveload.cpp b/engines/tsage/saveload.cpp
index db52050..e56968a 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


Commit: 1e80ac08858ecbf2c32f906f4eb0552bf5bee666
    https://github.com/scummvm/scummvm/commit/1e80ac08858ecbf2c32f906f4eb0552bf5bee666
Author: Paul Gilbert (dreammaster at scummvm.org)
Date: 2011-11-21T00:38:52-08:00

Commit Message:
CRUISE: Added explicit freeing of thumbnail surface pixels

Changed paths:
    engines/cruise/saveload.cpp



diff --git a/engines/cruise/saveload.cpp b/engines/cruise/saveload.cpp
index c3d1ea6..e2bd1eb 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;
 }
 






More information about the Scummvm-git-logs mailing list