aboutsummaryrefslogtreecommitdiff
path: root/engines
diff options
context:
space:
mode:
authorJohannes Schickel2016-05-15 15:42:40 +0200
committerJohannes Schickel2016-05-15 15:45:05 +0200
commit3664caa29cd3b6c4bf3e9d8663ba8839f3455684 (patch)
tree22251c735775217630b84689c9ac4acf435f1646 /engines
parent109c54c95bdd0888c9ada563e7a7edc35634716b (diff)
downloadscummvm-rg350-3664caa29cd3b6c4bf3e9d8663ba8839f3455684.tar.gz
scummvm-rg350-3664caa29cd3b6c4bf3e9d8663ba8839f3455684.tar.bz2
scummvm-rg350-3664caa29cd3b6c4bf3e9d8663ba8839f3455684.zip
KYRA: Silence analysis tools about possible memory leaks
Diffstat (limited to 'engines')
-rw-r--r--engines/kyra/staticres.cpp8
1 files changed, 8 insertions, 0 deletions
diff --git a/engines/kyra/staticres.cpp b/engines/kyra/staticres.cpp
index 1a2e2c093c..da8eec1c60 100644
--- a/engines/kyra/staticres.cpp
+++ b/engines/kyra/staticres.cpp
@@ -838,6 +838,14 @@ void KyraEngine_LoK::initStaticResource() {
SoundResourceInfo_PC98 resInfoIngame("KYRAM%d.DAT");
_sound->initAudioResourceInfo(kMusicIntro, &resInfoIntro);
_sound->initAudioResourceInfo(kMusicIngame, &resInfoIngame);
+
+ // This should never happen, but we add this to silence static
+ // analysis tools which complain about memory leaks.
+ delete[] soundFiles;
+ } else {
+ // This should never happen, but we add this to silence static
+ // analysis tools which complain about memory leaks.
+ delete[] soundFiles;
}
}