diff options
-rw-r--r-- | engines/sludge/sound.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
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() { |