From c60807cbb9dec063c0b00f8d6ffdb19e83db48f3 Mon Sep 17 00:00:00 2001 From: athrxx Date: Mon, 23 May 2011 16:37:58 +0200 Subject: FM-TOWNS AUDIO: Unlock internal mutex before calling imuse timer proc. --- engines/scumm/player_towns.cpp | 9 +++------ 1 file changed, 3 insertions(+), 6 deletions(-) (limited to 'engines/scumm') diff --git a/engines/scumm/player_towns.cpp b/engines/scumm/player_towns.cpp index 15b2f65797..e71a8d0587 100644 --- a/engines/scumm/player_towns.cpp +++ b/engines/scumm/player_towns.cpp @@ -581,15 +581,12 @@ Player_Towns_v2::Player_Towns_v2(ScummEngine *vm, Audio::Mixer *mixer, IMuse *im } Player_Towns_v2::~Player_Towns_v2() { - // Avoid lockup in imuse.cpp, line 78 - _intf->lockInternal(); - if (_imuseDispose) - delete _imuse; - _intf->unlockInternal(); - delete _intf; _intf = 0; + if (_imuseDispose) + delete _imuse; + delete[] _sblData; delete[] _soundOverride; } -- cgit v1.2.3