From e73363bd095005e9b849a50f97cd1a9ff04e5ba1 Mon Sep 17 00:00:00 2001 From: Torbjörn Andersson Date: Sat, 3 Jan 2004 11:12:35 +0000 Subject: Delete the mutex when we're done with it. svn-id: r12107 --- sword1/music.cpp | 2 ++ 1 file changed, 2 insertions(+) (limited to 'sword1') 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) { -- cgit v1.2.3