X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/6b8ef0b35d674bc262eb2005ac1321762c831d31..ec31b41de3aec21850fa09df3dbed5a524a63303:/samples/fswatcher/fswatcher.cpp diff --git a/samples/fswatcher/fswatcher.cpp b/samples/fswatcher/fswatcher.cpp index 51014172df..907f46ceaf 100644 --- a/samples/fswatcher/fswatcher.cpp +++ b/samples/fswatcher/fswatcher.cpp @@ -66,8 +66,7 @@ public: // 'Main program' equivalent: the program execution "starts" here virtual bool OnInit() { - // TODO remove then this code becomes rock-solid - wxLog::AddTraceMask(wxTRACE_EVT_SOURCE); + wxLog::AddTraceMask("EventSource"); wxLog::AddTraceMask(wxTRACE_FSWATCHER); // create the main application window @@ -280,8 +279,7 @@ void MyFrame::OnWatch(wxCommandEvent& event) { wxCHECK_RET(m_watcher, "Watcher not initialized"); m_filesList->DeleteAllItems(); - delete m_watcher; - m_watcher = NULL; + wxDELETE(m_watcher); } }