SWORD1: Fix leaking the save thumbnail MemoryWriteStreamDynamic buffer

This commit is contained in:
Bastien Bouclet 2017-09-20 19:18:44 +02:00
parent 382df4a7c5
commit c3bff7f25a

View File

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