X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/03647350fc7cd141953c72e0284e928847d30f44..d18eb918f447ebb3b9e28154839392fe6b32995a:/src/osx/carbon/tooltip.cpp diff --git a/src/osx/carbon/tooltip.cpp b/src/osx/carbon/tooltip.cpp index 0b7630ac79..0e642ec612 100644 --- a/src/osx/carbon/tooltip.cpp +++ b/src/osx/carbon/tooltip.cpp @@ -199,11 +199,7 @@ void wxMacToolTip::Setup( WindowRef win , const wxString& text , const wxPoint& wxMacToolTip::~wxMacToolTip() { #if wxUSE_TIMER - if ( m_timer ) - { - delete m_timer ; - m_timer = NULL; - } + wxDELETE(m_timer); #endif // wxUSE_TIMER if ( m_backpict ) Clear() ; @@ -251,11 +247,7 @@ void wxMacToolTip::Clear() { m_mark++ ; #if wxUSE_TIMER - if ( m_timer ) - { - delete m_timer ; - m_timer = NULL ; - } + wxDELETE(m_timer); #endif // wxUSE_TIMER if ( !m_shown ) return ;