mirror of
https://github.com/libretro/scummvm.git
synced 2024-12-15 14:18:37 +00:00
SWORD1: Fix leaking the save thumbnail MemoryWriteStreamDynamic buffer
This commit is contained in:
parent
382df4a7c5
commit
c3bff7f25a
@ -303,7 +303,7 @@ static int volToBalance(int volL, int volR) {
|
||||
uint8 Control::runPanel() {
|
||||
// Make a thumbnail of the screen before displaying the menu in case we want to save
|
||||
// the game from the menu.
|
||||
_tempThumbnail = new Common::MemoryWriteStreamDynamic;
|
||||
_tempThumbnail = new Common::MemoryWriteStreamDynamic(DisposeAfterUse::YES);
|
||||
Graphics::saveThumbnail(*_tempThumbnail);
|
||||
|
||||
_panelShown = true;
|
||||
|
Loading…
Reference in New Issue
Block a user