From 3664caa29cd3b6c4bf3e9d8663ba8839f3455684 Mon Sep 17 00:00:00 2001 From: Johannes Schickel Date: Sun, 15 May 2016 15:42:40 +0200 Subject: KYRA: Silence analysis tools about possible memory leaks --- engines/kyra/staticres.cpp | 8 ++++++++ 1 file changed, 8 insertions(+) (limited to 'engines') 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; } } -- cgit v1.2.3