diff options
author | Bastien Bouclet | 2017-09-20 19:16:55 +0200 |
---|---|---|
committer | Bastien Bouclet | 2017-09-22 07:06:20 +0200 |
commit | 382df4a7c5a15938009dac71e8d0a0fa1559ea54 (patch) | |
tree | 4e49743cdfebf47bb8222c21e99665887dcc655d /engines/gnap | |
parent | 9facbdecda3f15d2fd9889294ecd4e550050c0a3 (diff) | |
download | scummvm-rg350-382df4a7c5a15938009dac71e8d0a0fa1559ea54.tar.gz scummvm-rg350-382df4a7c5a15938009dac71e8d0a0fa1559ea54.tar.bz2 scummvm-rg350-382df4a7c5a15938009dac71e8d0a0fa1559ea54.zip |
GNAP: Fix leaking the save thumbnail MemoryWriteStreamDynamic buffer
Diffstat (limited to 'engines/gnap')
-rw-r--r-- | engines/gnap/menu.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/engines/gnap/menu.cpp b/engines/gnap/menu.cpp index 2bfe7300df..9606273b4c 100644 --- a/engines/gnap/menu.cpp +++ b/engines/gnap/menu.cpp @@ -211,7 +211,7 @@ void GnapEngine::runMenu() { _menuDone = false; delete _tempThumbnail; - _tempThumbnail = new Common::MemoryWriteStreamDynamic; + _tempThumbnail = new Common::MemoryWriteStreamDynamic(DisposeAfterUse::YES); Graphics::saveThumbnail(*_tempThumbnail); createMenuSprite(); |