X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/5cd99866132366b74289e5a08e963723732bae01..a82afab363d472b412823d645091ced8a60b6c14:/src/unix/fswatcher_inotify.cpp?ds=sidebyside diff --git a/src/unix/fswatcher_inotify.cpp b/src/unix/fswatcher_inotify.cpp index edb3c52765..6c27e5c0f2 100644 --- a/src/unix/fswatcher_inotify.cpp +++ b/src/unix/fswatcher_inotify.cpp @@ -91,8 +91,7 @@ public: wxCHECK_RET( IsOk(), "Inotify not initialized or invalid inotify descriptor" ); - delete m_source; - m_source = NULL; + wxDELETE(m_source); if ( close(m_ifd) != 0 ) {