From 606d2135b85a15820fb8a95d3d7d91adfae76b24 Mon Sep 17 00:00:00 2001 From: Simei Yin Date: Sat, 12 Aug 2017 16:13:10 +0200 Subject: SLUDGE: Fix SoundManager destructure error --- engines/sludge/sound.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'engines/sludge') diff --git a/engines/sludge/sound.cpp b/engines/sludge/sound.cpp index f25b48fb53..79b9ab79d8 100644 --- a/engines/sludge/sound.cpp +++ b/engines/sludge/sound.cpp @@ -65,6 +65,8 @@ SoundManager::SoundManager() { } SoundManager::~SoundManager() { + killSoundStuff(); + delete []_soundCache; _soundCache = nullptr; @@ -72,8 +74,6 @@ SoundManager::~SoundManager() { delete []_modCache; _modCache = nullptr; #endif - - killSoundStuff(); } bool SoundManager::initSoundStuff() { -- cgit v1.2.3