From d097768e1fe1d070d75100808543272737dd1e11 Mon Sep 17 00:00:00 2001 From: athrxx Date: Wed, 7 Aug 2019 23:02:49 +0200 Subject: AUDIO: (FM-Towns/PC-98) - deconstructor/race condition fix (move mixer calls before mutex lock, since the mixer has a mutex of its own) --- audio/softsynth/fmtowns_pc98/pc98_audio.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'audio/softsynth/fmtowns_pc98/pc98_audio.cpp') diff --git a/audio/softsynth/fmtowns_pc98/pc98_audio.cpp b/audio/softsynth/fmtowns_pc98/pc98_audio.cpp index c8d58f6923..9ab1ec7659 100644 --- a/audio/softsynth/fmtowns_pc98/pc98_audio.cpp +++ b/audio/softsynth/fmtowns_pc98/pc98_audio.cpp @@ -80,9 +80,9 @@ PC98AudioCoreInternal::PC98AudioCoreInternal(Audio::Mixer *mixer, PC98AudioCore } PC98AudioCoreInternal::~PC98AudioCoreInternal() { + deinit(); Common::StackLock lock(_mutex); _ready = false; - deinit(); /* -- cgit v1.2.3