PINK: fix game page destruction after saving

This commit is contained in:
whiterandrek 2018-06-10 09:40:18 +03:00 committed by Eugene Sandulenko
parent 10f6e0a6b3
commit b9a5f84515

View File

@ -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());