From 0d77642254ec91e97ee0d5aab766c8b4ecedcec5 Mon Sep 17 00:00:00 2001 From: Bendegúz Nagy Date: Fri, 20 Jan 2017 21:26:43 +0100 Subject: Silence valgrind error messages --- engines/dm/gfx.cpp | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) (limited to 'engines/dm') diff --git a/engines/dm/gfx.cpp b/engines/dm/gfx.cpp index 9ff1810f83..2e9de5bd16 100644 --- a/engines/dm/gfx.cpp +++ b/engines/dm/gfx.cpp @@ -167,6 +167,8 @@ DisplayMan::DisplayMan(DMEngine *dmEngine) : _vm(dmEngine) { for (uint16 i = 0; i < 16; ++i) _paletteFadeTemporary[i] = 0; + _refreshDungeonViewPaleteRequested = false; + initConstants(); } @@ -521,12 +523,13 @@ void DisplayMan::initializeGraphicData() { _bitmapWallSetDoorFrameLeftD3C = new byte[32 * 44]; _bitmapWallSetDoorFrameLeftD2C = new byte[48 * 65]; _bitmapWallSetDoorFrameLeftD1C = new byte[32 * 94]; - _bitmapWallSetDoorFrameRightD1C = new byte[32 * 94]; + _bitmapWallSetDoorFrameRightD1C = new byte[32 * 94](); _bitmapWallSetDoorFrameFront = new byte[32 * 123]; - _bitmapViewport = new byte[224 * 136]; + _bitmapViewport = new byte[224 * 136](); if (!_derivedBitmapByteCount) _derivedBitmapByteCount = new uint16[k730_DerivedBitmapMaximumCount]; + } if (!_derivedBitmaps) { _derivedBitmaps = new byte *[k730_DerivedBitmapMaximumCount]; for (uint16 i = 0; i < k730_DerivedBitmapMaximumCount; ++i) -- cgit v1.2.3