diff options
Diffstat (limited to 'engines/zvision/file/save_manager.cpp')
-rw-r--r-- | engines/zvision/file/save_manager.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/engines/zvision/file/save_manager.cpp b/engines/zvision/file/save_manager.cpp index 8a78e988b3..4259937a3b 100644 --- a/engines/zvision/file/save_manager.cpp +++ b/engines/zvision/file/save_manager.cpp @@ -273,11 +273,11 @@ Common::SeekableReadStream *SaveManager::getSlotFile(uint slot) { void SaveManager::prepareSaveBuffer() { delete _tempThumbnail; - _tempThumbnail = new Common::MemoryWriteStreamDynamic; + _tempThumbnail = new Common::MemoryWriteStreamDynamic(DisposeAfterUse::YES); Graphics::saveThumbnail(*_tempThumbnail); delete _tempSave; - _tempSave = new Common::MemoryWriteStreamDynamic; + _tempSave = new Common::MemoryWriteStreamDynamic(DisposeAfterUse::YES); _engine->getScriptManager()->serialize(_tempSave); } |