From de6e6408b6b393a8aac60a3e92e622a88fa925a8 Mon Sep 17 00:00:00 2001 From: Johannes Schickel Date: Mon, 12 May 2008 17:23:28 +0000 Subject: Fixed some valgrind warnings. svn-id: r32065 --- engines/kyra/kyra_mr.cpp | 3 ++- engines/kyra/screen.cpp | 1 + 2 files changed, 3 insertions(+), 1 deletion(-) (limited to 'engines') diff --git a/engines/kyra/kyra_mr.cpp b/engines/kyra/kyra_mr.cpp index 9503420f82..293804f4f0 100644 --- a/engines/kyra/kyra_mr.cpp +++ b/engines/kyra/kyra_mr.cpp @@ -147,6 +147,7 @@ KyraEngine_MR::KyraEngine_MR(OSystem *system, const GameFlags &flags) : KyraEngi _albumChatActive = false; memset(&_album, 0, sizeof(_album)); _configHelium = false; + _fadeOutMusicChannel = -1; } KyraEngine_MR::~KyraEngine_MR() { @@ -816,7 +817,7 @@ void KyraEngine_MR::loadCharacterShapes(int newShapes) { ShapeMap::iterator iter = _gameShapes.find(i); if (iter != _gameShapes.end()) { - delete iter->_value; + delete[] iter->_value; iter->_value = 0; } } diff --git a/engines/kyra/screen.cpp b/engines/kyra/screen.cpp index 6e250f292a..8d18bc2e78 100644 --- a/engines/kyra/screen.cpp +++ b/engines/kyra/screen.cpp @@ -36,6 +36,7 @@ namespace Kyra { Screen::Screen(KyraEngine_v1 *vm, OSystem *system) : _system(system), _vm(vm), _sjisInvisibleColor(0) { _debugEnabled = false; + _maskMinY = _maskMaxY = -1; } Screen::~Screen() { -- cgit v1.2.3