X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/deb0a11e9907e4834247d7cddebe9edbb71dd34b..86ad5903b94d00e7c7625a705f6cd22301607ccd:/src/osx/carbon/sound.cpp diff --git a/src/osx/carbon/sound.cpp b/src/osx/carbon/sound.cpp index 6de5ccd27e..39bb269856 100644 --- a/src/osx/carbon/sound.cpp +++ b/src/osx/carbon/sound.cpp @@ -100,6 +100,9 @@ void wxOSXSoundManagerSoundData::DoStop() m_pSndChannel = NULL; wxSound::SoundStopped(this); } + + if (IsMarkedForDeletion()) + delete this; } bool wxOSXSoundManagerSoundData::Play(unsigned flags)