diff --git a/src/common/log.cpp b/src/common/log.cpp index 4c58a331e2..9a182465b8 100644 --- a/src/common/log.cpp +++ b/src/common/log.cpp @@ -770,7 +770,10 @@ wxLogChain::wxLogChain(wxLog *logger) wxLogChain::~wxLogChain() { - delete m_logNew; + delete m_logOld; + + if ( m_logNew != this ) + delete m_logNew; } void wxLogChain::SetLog(wxLog *logger)