projects
/
wxWidgets.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
To support playing async sounds on the stack on Mac, do not delete the wxSoundData...
[wxWidgets.git]
/
src
/
osx
/
core
/
sound.cpp
diff --git
a/src/osx/core/sound.cpp
b/src/osx/core/sound.cpp
index fd9d6d4b768c55814a37479394ed43c6484cb5ea..8d6c883af6ab8952f42b898e1d58bdad44298731 100644
(file)
--- a/
src/osx/core/sound.cpp
+++ b/
src/osx/core/sound.cpp
@@
-68,6
+68,9
@@
wxOSXAudioToolboxSoundData::CompletionCallback(SystemSoundID WXUNUSED(mySSID),
wxOSXAudioToolboxSoundData* data = (wxOSXAudioToolboxSoundData*) soundRef;
data->SoundCompleted();
+
+ if (data->IsMarkedForDeletion())
+ delete data;
}
void wxOSXAudioToolboxSoundData::SoundCompleted()