Fixed 2 memory leaks, one related to wxEvtHandler::OnEvent and the other related to the creation of new objects.