aboutsummaryrefslogtreecommitdiff
path: root/engines/gnap
diff options
context:
space:
mode:
authorBastien Bouclet2017-09-20 19:16:55 +0200
committerBastien Bouclet2017-09-22 07:06:20 +0200
commit382df4a7c5a15938009dac71e8d0a0fa1559ea54 (patch)
tree4e49743cdfebf47bb8222c21e99665887dcc655d /engines/gnap
parent9facbdecda3f15d2fd9889294ecd4e550050c0a3 (diff)
downloadscummvm-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.cpp2
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();