mirror of
https://github.com/libretro/scummvm.git
synced 2024-12-15 06:08:35 +00:00
ZVISION: Fix leaking save / thumbnail MemoryWriteStreamDynamic buffers
This commit is contained in:
parent
ddac55699d
commit
1b3cc08b75
@ -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);
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user