X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/f124a4c5379a13a396cb6ee4356d8be9b266bd1b..f79cf73292f47d1d225297f53b1cfc30bda0462f:/src/msw/mediactrl.cpp diff --git a/src/msw/mediactrl.cpp b/src/msw/mediactrl.cpp index 2609f78e4b..32adbe9836 100644 --- a/src/msw/mediactrl.cpp +++ b/src/msw/mediactrl.cpp @@ -2193,11 +2193,7 @@ wxAMMediaBackend::~wxAMMediaBackend() //--------------------------------------------------------------------------- void wxAMMediaBackend::Clear() { - if (m_pTimer) - { - delete m_pTimer; - m_pTimer = NULL; - } + wxDELETE(m_pTimer); } //--------------------------------------------------------------------------- @@ -3923,11 +3919,7 @@ void wxQTMediaBackend::Cleanup() { m_bPlaying = false; - if (m_timer) - { - delete m_timer; - m_timer = NULL; - } + wxDELETE(m_timer); m_lib.StopMovie(m_movie);