Our application uses wxTimer instance like this.
Created like in step 1 below, started like in step 2, and stopped as in step 3.
Code: Select all
1. m_savedChangesTextHideTimer = new wxTimer(this);
2. m_savedChangesTextHideTimer->StartOnce(TEN_SECONDS);
3.
if (m_savedChangesTextHideTimer->IsRunning()
{
m_savedChangesTextHideTimer->Stop();
}
Because when i attach a memory leak detector to the application, it shows leaks on the line where it is created.
Any help is very much appreciated.