aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-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;
}
}