mirror of
https://github.com/libretro/scummvm.git
synced 2024-12-14 21:59:17 +00:00
PINK: fix game page destruction after saving
This commit is contained in:
parent
10f6e0a6b3
commit
b9a5f84515
@ -174,6 +174,7 @@ void GamePage::saveState(Archive &archive) {
|
||||
archive.writeDWORD(_memFile->size());
|
||||
archive.getWriteStream()->write(_memFile->getData(), _memFile->size());
|
||||
delete _memFile;
|
||||
_memFile = nullptr;
|
||||
} else {
|
||||
if (_memFile != nullptr) {
|
||||
archive.writeDWORD(_memFile->size());
|
||||
|
Loading…
Reference in New Issue
Block a user