aboutsummaryrefslogtreecommitdiff
path: root/engines
diff options
context:
space:
mode:
authorBastien Bouclet2017-09-20 19:15:56 +0200
committerBastien Bouclet2017-09-22 07:06:20 +0200
commit9facbdecda3f15d2fd9889294ecd4e550050c0a3 (patch)
tree513fc0b5f4e4b0dc29fe5a3891d648c0de70df2e /engines
parentab1243277ab18ce54720dc734c48520f01274ad9 (diff)
downloadscummvm-rg350-9facbdecda3f15d2fd9889294ecd4e550050c0a3.tar.gz
scummvm-rg350-9facbdecda3f15d2fd9889294ecd4e550050c0a3.tar.bz2
scummvm-rg350-9facbdecda3f15d2fd9889294ecd4e550050c0a3.zip
FULLPIPE: Fix leaking the save MemoryWriteStreamDynamic buffer
Diffstat (limited to 'engines')
-rw-r--r--engines/fullpipe/statesaver.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/engines/fullpipe/statesaver.cpp b/engines/fullpipe/statesaver.cpp
index 7fb56f0479..5eb08fe213 100644
--- a/engines/fullpipe/statesaver.cpp
+++ b/engines/fullpipe/statesaver.cpp
@@ -55,7 +55,7 @@ bool GameLoader::writeSavegame(Scene *sc, const char *fname) {
header.updateCounter = _updateCounter;
header.unkField = 1;
- Common::MemoryWriteStreamDynamic stream;
+ Common::MemoryWriteStreamDynamic stream(DisposeAfterUse::YES);
MfcArchive *archive = new MfcArchive(&stream);