diff options
author | Simei Yin | 2017-08-12 16:13:10 +0200 |
---|---|---|
committer | Simei Yin | 2017-08-12 16:49:47 +0200 |
commit | 606d2135b85a15820fb8a95d3d7d91adfae76b24 (patch) | |
tree | aea10641ab5ba37199697b7d5689bd41769fac2f /engines | |
parent | e2a15a21a014765fd7c431d5f34a0b20c0b68263 (diff) | |
download | scummvm-rg350-606d2135b85a15820fb8a95d3d7d91adfae76b24.tar.gz scummvm-rg350-606d2135b85a15820fb8a95d3d7d91adfae76b24.tar.bz2 scummvm-rg350-606d2135b85a15820fb8a95d3d7d91adfae76b24.zip |
SLUDGE: Fix SoundManager destructure error
Diffstat (limited to 'engines')
-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() { |