X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/65391c8ffcb388cd31f610776654f50aed97cbee..f7196178a5b6d29659a4133a8f76332250f9618a:/src/unix/net.cpp?ds=sidebyside diff --git a/src/unix/net.cpp b/src/unix/net.cpp index ab4936b946..0516d9ef1b 100644 --- a/src/unix/net.cpp +++ b/src/unix/net.cpp @@ -236,8 +236,7 @@ wxDialUpManagerImpl::EnableAutoCheckOnlineStatus(size_t nSeconds) bool rc = m_timer->Start(nSeconds*1000); if(! rc) { - delete m_timer; - m_timer = NULL; + wxDELETE(m_timer); } return rc; } @@ -247,8 +246,7 @@ wxDialUpManagerImpl::DisableAutoCheckOnlineStatus() { wxASSERT(m_timer != NULL); m_timer->Stop(); - delete m_timer; - m_timer = NULL; + wxDELETE(m_timer); }