// '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
{
wxCHECK_RET(m_watcher, "Watcher not initialized");
m_filesList->DeleteAllItems();
- delete m_watcher;
- m_watcher = NULL;
+ wxDELETE(m_watcher);
}
}