From 58f3dcf780400211e7064095f944617c68291a85 Mon Sep 17 00:00:00 2001 From: Stefan Csomor Date: Mon, 3 Dec 2018 14:42:27 +0100 Subject: [PATCH] fixing macOS sound crash make sure no completion call gets triggered after this point --- src/osx/core/sound.cpp | 1 + 1 file changed, 1 insertion(+) diff --git a/src/osx/core/sound.cpp b/src/osx/core/sound.cpp index f97c11eb2f..1c5ec6e2dc 100644 --- a/src/osx/core/sound.cpp +++ b/src/osx/core/sound.cpp @@ -94,6 +94,7 @@ void wxOSXAudioToolboxSoundData::DoStop() if ( m_playing ) { m_playing = false; + AudioServicesRemoveSystemSoundCompletion(m_soundID); AudioServicesDisposeSystemSoundID (m_soundID); wxSound::SoundStopped(this);