aboutsummaryrefslogtreecommitdiff
path: root/sword2
diff options
context:
space:
mode:
authorMax Horn2003-12-19 01:08:30 +0000
committerMax Horn2003-12-19 01:08:30 +0000
commit0cddca5f43c5b85d28f2977d783a6cd5cec0d540 (patch)
treedef3a524c684f22a90012665c06a30e4d20d2d68 /sword2
parentd21fc5845dc77dd977df22fd9ddc3206bf23a920 (diff)
downloadscummvm-rg350-0cddca5f43c5b85d28f2977d783a6cd5cec0d540.tar.gz
scummvm-rg350-0cddca5f43c5b85d28f2977d783a6cd5cec0d540.tar.bz2
scummvm-rg350-0cddca5f43c5b85d28f2977d783a6cd5cec0d540.zip
unregister the premix proc when you go away
svn-id: r11755
Diffstat (limited to 'sword2')
-rw-r--r--sword2/driver/d_sound.cpp1
1 files changed, 1 insertions, 0 deletions
diff --git a/sword2/driver/d_sound.cpp b/sword2/driver/d_sound.cpp
index c433620ea6..303fcb5893 100644
--- a/sword2/driver/d_sound.cpp
+++ b/sword2/driver/d_sound.cpp
@@ -140,6 +140,7 @@ Sound::Sound(Sword2Engine *vm) {
}
Sound::~Sound() {
+ _vm->_mixer->setupPremix(0, 0);
if (_mutex)
_vm->_system->delete_mutex(_mutex);
}