diff options
author | Bastien Bouclet | 2017-09-20 19:15:56 +0200 |
---|---|---|
committer | Bastien Bouclet | 2017-09-22 07:06:20 +0200 |
commit | 9facbdecda3f15d2fd9889294ecd4e550050c0a3 (patch) | |
tree | 513fc0b5f4e4b0dc29fe5a3891d648c0de70df2e /engines | |
parent | ab1243277ab18ce54720dc734c48520f01274ad9 (diff) | |
download | scummvm-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.cpp | 2 |
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); |