aboutsummaryrefslogtreecommitdiff
path: root/sword1
diff options
context:
space:
mode:
authorTorbjörn Andersson2004-01-03 11:12:35 +0000
committerTorbjörn Andersson2004-01-03 11:12:35 +0000
commite73363bd095005e9b849a50f97cd1a9ff04e5ba1 (patch)
tree0b165857f665023e5adad073ccb3b1a1ab54a2bf /sword1
parentedea972b4be9dbeb8ff500a07e3fa58d301b5e36 (diff)
downloadscummvm-rg350-e73363bd095005e9b849a50f97cd1a9ff04e5ba1.tar.gz
scummvm-rg350-e73363bd095005e9b849a50f97cd1a9ff04e5ba1.tar.bz2
scummvm-rg350-e73363bd095005e9b849a50f97cd1a9ff04e5ba1.zip
Delete the mutex when we're done with it.
svn-id: r12107
Diffstat (limited to 'sword1')
-rw-r--r--sword1/music.cpp2
1 files changed, 2 insertions, 0 deletions
diff --git a/sword1/music.cpp b/sword1/music.cpp
index 9e8bcee336..7bf913f02a 100644
--- a/sword1/music.cpp
+++ b/sword1/music.cpp
@@ -118,6 +118,8 @@ SwordMusic::~SwordMusic() {
_mixer->setupPremix(0, 0);
delete _converter[0];
delete _converter[1];
+ if (_mutex)
+ _system->delete_mutex(_mutex);
}
void SwordMusic::passMixerFunc(void *param, int16 *buf, uint len) {