aboutsummaryrefslogtreecommitdiff
path: root/engines
diff options
context:
space:
mode:
authorSimei Yin2017-08-12 16:13:10 +0200
committerSimei Yin2017-08-12 16:49:47 +0200
commit606d2135b85a15820fb8a95d3d7d91adfae76b24 (patch)
treeaea10641ab5ba37199697b7d5689bd41769fac2f /engines
parente2a15a21a014765fd7c431d5f34a0b20c0b68263 (diff)
downloadscummvm-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.cpp4
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() {