CRUISE: Added explicit freeing of thumbnail surface pixels

This commit is contained in:
Paul Gilbert 2011-11-21 19:38:52 +11:00
parent e8aa812608
commit 1e80ac0885

View File

@ -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;
}