aboutsummaryrefslogtreecommitdiff
path: root/engines
diff options
context:
space:
mode:
authorBendegúz Nagy2017-01-20 21:26:43 +0100
committerBendegúz Nagy2017-01-20 21:26:43 +0100
commit0d77642254ec91e97ee0d5aab766c8b4ecedcec5 (patch)
treed63a72f84b0a96127158e936f0ae54b55ae9bb7a /engines
parent0eb20223f4d007f74361e53ac10b63b62a9c46b2 (diff)
downloadscummvm-rg350-0d77642254ec91e97ee0d5aab766c8b4ecedcec5.tar.gz
scummvm-rg350-0d77642254ec91e97ee0d5aab766c8b4ecedcec5.tar.bz2
scummvm-rg350-0d77642254ec91e97ee0d5aab766c8b4ecedcec5.zip
Silence valgrind error messages
Diffstat (limited to 'engines')
-rw-r--r--engines/dm/gfx.cpp7
1 files changed, 5 insertions, 2 deletions
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)