diff --git a/src/common/log.cpp b/src/common/log.cpp index 510b939984..4c58a331e2 100644 --- a/src/common/log.cpp +++ b/src/common/log.cpp @@ -768,6 +768,11 @@ wxLogChain::wxLogChain(wxLog *logger) m_logOld = wxLog::SetActiveTarget(this); } +wxLogChain::~wxLogChain() +{ + delete m_logNew; +} + void wxLogChain::SetLog(wxLog *logger) { if ( m_logNew != this )