aboutsummaryrefslogtreecommitdiff
path: root/audio/softsynth/fmtowns_pc98/pc98_audio.cpp
diff options
context:
space:
mode:
authorathrxx2019-08-07 23:02:49 +0200
committerathrxx2019-08-25 11:58:19 +0200
commitd097768e1fe1d070d75100808543272737dd1e11 (patch)
tree11aa54e3a425f8195b65b60bbedb393fbed533c7 /audio/softsynth/fmtowns_pc98/pc98_audio.cpp
parent5b5a89e3e7b880907f99675a68c5e0a8e2460470 (diff)
downloadscummvm-rg350-d097768e1fe1d070d75100808543272737dd1e11.tar.gz
scummvm-rg350-d097768e1fe1d070d75100808543272737dd1e11.tar.bz2
scummvm-rg350-d097768e1fe1d070d75100808543272737dd1e11.zip
AUDIO: (FM-Towns/PC-98) - deconstructor/race condition fix
(move mixer calls before mutex lock, since the mixer has a mutex of its own)
Diffstat (limited to 'audio/softsynth/fmtowns_pc98/pc98_audio.cpp')
-rw-r--r--audio/softsynth/fmtowns_pc98/pc98_audio.cpp2
1 files changed, 1 insertions, 1 deletions
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();
/*