diff options
author | Eugene Sandulenko | 2016-05-15 12:30:52 +0200 |
---|---|---|
committer | Eugene Sandulenko | 2016-05-15 12:30:52 +0200 |
commit | 1b7bb9ee6db6ee4bd48054680eb8460bf63c9796 (patch) | |
tree | d5d6166178b754b88148619d58a5cacf483499dc /engines/access | |
parent | 20433e3476f9a6c6e22ba8f11e8963b2c78a03bb (diff) | |
download | scummvm-rg350-1b7bb9ee6db6ee4bd48054680eb8460bf63c9796.tar.gz scummvm-rg350-1b7bb9ee6db6ee4bd48054680eb8460bf63c9796.tar.bz2 scummvm-rg350-1b7bb9ee6db6ee4bd48054680eb8460bf63c9796.zip |
ACCESS: Plug memory leak
Diffstat (limited to 'engines/access')
-rw-r--r-- | engines/access/room.cpp | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/engines/access/room.cpp b/engines/access/room.cpp index a7192d330f..a41de63bf6 100644 --- a/engines/access/room.cpp +++ b/engines/access/room.cpp @@ -142,7 +142,7 @@ void Room::takePicture() { _vm->_player->_roomNumber = 7; _vm->_room->_function = FN_CLEAR1; return; - } else if (result >= 0) + } else if (result >= 0) _vm->_player->_move = (Direction)(result + 1); _vm->_player->_scrollFlag = false; @@ -715,6 +715,8 @@ void Room::executeCommand(int commandId) { screen.plotImage(spr, _selectCommand + 2, Common::Point(_rMouse[_selectCommand][0], (_vm->getGameID() == GType_MartianMemorandum) ? 184 : 176)); + delete spr; + _vm->_screen->restoreScreen(); _vm->_boxSelect = true; } |