mirror of
https://github.com/libretro/scummvm.git
synced 2025-02-20 19:21:46 +00:00
CRUISE: Added explicit freeing of thumbnail surface pixels
This commit is contained in:
parent
e8aa812608
commit
1e80ac0885
@ -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;
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user