From b9a5f84515f2d492b67e1c91b252b157b24804dc Mon Sep 17 00:00:00 2001 From: whiterandrek Date: Sun, 10 Jun 2018 09:40:18 +0300 Subject: [PATCH] PINK: fix game page destruction after saving --- engines/pink/objects/pages/game_page.cpp | 1 + 1 file changed, 1 insertion(+) diff --git a/engines/pink/objects/pages/game_page.cpp b/engines/pink/objects/pages/game_page.cpp index b2b73453d18..9ddcffd6d42 100644 --- a/engines/pink/objects/pages/game_page.cpp +++ b/engines/pink/objects/pages/game_page.cpp @@ -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());