From dce05c520b2e1f273f395c986573f532ee698921 Mon Sep 17 00:00:00 2001 From: Matthew Hoops Date: Wed, 29 Apr 2015 23:42:01 -0400 Subject: AUDIO: Be consistent with calling stop() in OPL destructors --- audio/fmopl.cpp | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) (limited to 'audio/fmopl.cpp') diff --git a/audio/fmopl.cpp b/audio/fmopl.cpp index 07c5b44427..638da6c224 100644 --- a/audio/fmopl.cpp +++ b/audio/fmopl.cpp @@ -201,8 +201,10 @@ EmulatedOPL::EmulatedOPL() : EmulatedOPL::~EmulatedOPL() { // Stop callbacks, just in case. If it's still playing at this - // point, there's probably a bigger issue, though. - stopCallbacks(); + // point, there's probably a bigger issue, though. The subclass + // needs to call stop() or the pointer can still use be used in + // the mixer thread at the same time. + stop(); } int EmulatedOPL::readBuffer(int16 *buffer, const int numSamples) { -- cgit v1.2.3