X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/509da835c597ef3359d569866819395f64c2b0a4..f79cf73292f47d1d225297f53b1cfc30bda0462f:/src/osx/sound_osx.cpp?ds=sidebyside diff --git a/src/osx/sound_osx.cpp b/src/osx/sound_osx.cpp index 1155660e46..ba8d3166f6 100644 --- a/src/osx/sound_osx.cpp +++ b/src/osx/sound_osx.cpp @@ -73,11 +73,7 @@ void wxSoundData::MarkForDeletion() void wxSoundData::Stop() { DoStop(); - if ( m_pTimer ) - { - delete m_pTimer; - m_pTimer = NULL; - } + wxDELETE(m_pTimer); } //Time between timer calls