fixing macOS sound crash

make sure no completion call gets triggered after this point
This commit is contained in:
Stefan Csomor
2018-12-03 14:42:27 +01:00
parent e9fb190ed7
commit 58f3dcf780

View File

@@ -94,6 +94,7 @@ void wxOSXAudioToolboxSoundData::DoStop()
if ( m_playing )
{
m_playing = false;
AudioServicesRemoveSystemSoundCompletion(m_soundID);
AudioServicesDisposeSystemSoundID (m_soundID);
wxSound::SoundStopped(this);