aboutsummaryrefslogtreecommitdiff
path: root/engines
diff options
context:
space:
mode:
authorRobert Špalek2009-09-30 21:07:04 +0000
committerRobert Špalek2009-09-30 21:07:04 +0000
commit5ad13a3dff41398c4b33cd340637fd3924cfded1 (patch)
tree93b9d6d2916247fcfd4619e28fa1e7aeb07b523e /engines
parent94572773d0567151627e87fcd5f3cba8420321cb (diff)
downloadscummvm-rg350-5ad13a3dff41398c4b33cd340637fd3924cfded1.tar.gz
scummvm-rg350-5ad13a3dff41398c4b33cd340637fd3924cfded1.tar.bz2
scummvm-rg350-5ad13a3dff41398c4b33cd340637fd3924cfded1.zip
Fix 2 ValGrind warnings.
svn-id: r44499
Diffstat (limited to 'engines')
-rw-r--r--engines/draci/game.cpp5
1 files changed, 3 insertions, 2 deletions
diff --git a/engines/draci/game.cpp b/engines/draci/game.cpp
index df723dbbba..053494c458 100644
--- a/engines/draci/game.cpp
+++ b/engines/draci/game.cpp
@@ -206,8 +206,8 @@ void Game::init() {
_vm->_mouse->setCursorType(kNormalCursor);
_loopStatus = kStatusOrdinary;
- _objUnderCursor = kOverlayImage;
-
+ _oldObjUnderCursor = _objUnderCursor = kOverlayImage;
+
// Set the inventory to empty initially
memset(_inventory, kNoItem, kInventorySlots * sizeof(int));
@@ -1139,6 +1139,7 @@ void Game::loadRoom(int roomNum) {
}
Sprite *ov = new Sprite(wlk, kScreenWidth, kScreenHeight, 0, 0, false);
+ delete[] wlk;
Animation *map = _vm->_anims->addAnimation(kWalkingMapOverlay, 255, false);
map->addFrame(ov);