X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/5cd99866132366b74289e5a08e963723732bae01..e8fd252ef87d8ff6409d405218ff02c91b980e0a:/src/unix/fswatcher_kqueue.cpp diff --git a/src/unix/fswatcher_kqueue.cpp b/src/unix/fswatcher_kqueue.cpp index e1046e2ea4..2c7296a4e0 100644 --- a/src/unix/fswatcher_kqueue.cpp +++ b/src/unix/fswatcher_kqueue.cpp @@ -115,8 +115,7 @@ public: wxLogSysError(_("Error closing kqueue instance")); } - delete m_source; - m_source = NULL; + wxDELETE(m_source); } virtual bool DoAdd(wxSharedPtr watch) @@ -419,11 +418,7 @@ wxKqueueFileSystemWatcher::wxKqueueFileSystemWatcher(const wxFileName& path, { if (!Init()) { - if (m_service) - { - delete m_service; - m_service = NULL; - } + wxDELETE(m_service); return; }