]> git.saurik.com Git - wxWidgets.git/blobdiff - src/osx/carbon/sound.cpp
Correct format specifiers used to show wxIPV4address.
[wxWidgets.git] / src / osx / carbon / sound.cpp
index 6de5ccd27e24e46e8a8f9d4383d3e9ab61849f31..39bb269856513287ef54a55d50720a4ecaf42972 100644 (file)
@@ -100,6 +100,9 @@ void wxOSXSoundManagerSoundData::DoStop()
         m_pSndChannel = NULL;
         wxSound::SoundStopped(this);
     }
+    
+    if (IsMarkedForDeletion())
+        delete this;
 }
 
 bool wxOSXSoundManagerSoundData::Play(unsigned flags)