aboutsummaryrefslogtreecommitdiff
path: root/engines/access
diff options
context:
space:
mode:
authorPaul Gilbert2014-08-30 21:44:28 -0400
committerPaul Gilbert2014-08-30 21:44:28 -0400
commite854ec1bc98efcddc006fbf0078d15f51ffcb264 (patch)
tree5d296890cafbc822a2fe842d98c3931e65577b34 /engines/access
parentf8778a5e04b5cc46a898d9d6c570f506e7d3b58c (diff)
downloadscummvm-rg350-e854ec1bc98efcddc006fbf0078d15f51ffcb264.tar.gz
scummvm-rg350-e854ec1bc98efcddc006fbf0078d15f51ffcb264.tar.bz2
scummvm-rg350-e854ec1bc98efcddc006fbf0078d15f51ffcb264.zip
ACCESS: Fix freeing _eseg correctly
Diffstat (limited to 'engines/access')
-rw-r--r--engines/access/amazon/amazon_game.cpp2
1 files changed, 2 insertions, 0 deletions
diff --git a/engines/access/amazon/amazon_game.cpp b/engines/access/amazon/amazon_game.cpp
index d15587f32f..0725863444 100644
--- a/engines/access/amazon/amazon_game.cpp
+++ b/engines/access/amazon/amazon_game.cpp
@@ -297,6 +297,8 @@ void AmazonEngine::doEstablish(int screenId, int estabIndex) {
_screen->clearScreen();
delete _eseg;
+ _eseg = nullptr;
+
if (_establishMode == 0)
_room->init4Quads();
}