diff options
author | Bastien Bouclet | 2017-09-20 19:18:44 +0200 |
---|---|---|
committer | Bastien Bouclet | 2017-09-22 07:06:20 +0200 |
commit | c3bff7f25a24c549885b8e402fb499b0dd48b9cd (patch) | |
tree | d2b4cb1ed56b696b07440e4e0f01c663b5494360 /engines/sword1/control.cpp | |
parent | 382df4a7c5a15938009dac71e8d0a0fa1559ea54 (diff) | |
download | scummvm-rg350-c3bff7f25a24c549885b8e402fb499b0dd48b9cd.tar.gz scummvm-rg350-c3bff7f25a24c549885b8e402fb499b0dd48b9cd.tar.bz2 scummvm-rg350-c3bff7f25a24c549885b8e402fb499b0dd48b9cd.zip |
SWORD1: Fix leaking the save thumbnail MemoryWriteStreamDynamic buffer
Diffstat (limited to 'engines/sword1/control.cpp')
-rw-r--r-- | engines/sword1/control.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/engines/sword1/control.cpp b/engines/sword1/control.cpp index fbc3f6af4a..0c53430ba3 100644 --- a/engines/sword1/control.cpp +++ b/engines/sword1/control.cpp @@ -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; |