aboutsummaryrefslogtreecommitdiff
path: root/engines
diff options
context:
space:
mode:
authorJohannes Schickel2008-05-12 17:23:28 +0000
committerJohannes Schickel2008-05-12 17:23:28 +0000
commitde6e6408b6b393a8aac60a3e92e622a88fa925a8 (patch)
tree2589835f31ef27f79965f9b4739aa1a2193d1654 /engines
parente27e54bd1f052958570fecddc2f341d57df3fde1 (diff)
downloadscummvm-rg350-de6e6408b6b393a8aac60a3e92e622a88fa925a8.tar.gz
scummvm-rg350-de6e6408b6b393a8aac60a3e92e622a88fa925a8.tar.bz2
scummvm-rg350-de6e6408b6b393a8aac60a3e92e622a88fa925a8.zip
Fixed some valgrind warnings.
svn-id: r32065
Diffstat (limited to 'engines')
-rw-r--r--engines/kyra/kyra_mr.cpp3
-rw-r--r--engines/kyra/screen.cpp1
2 files changed, 3 insertions, 1 deletions
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() {