TSAGE: Added explicit freeing of thumbnail surface pixels

This commit is contained in:
Paul Gilbert 2011-11-21 19:38:32 +11:00
parent 5a868a4008
commit e8aa812608

View file

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