From: Vadim Zeitlin Date: Sat, 27 Apr 2002 22:33:26 +0000 (+0000) Subject: fixed memory leak in wxLogChain X-Git-Url: https://git.saurik.com/wxWidgets.git/commitdiff_plain/199e91fb675fc0217da99f8b1f829eacbd1c25d9?ds=inline fixed memory leak in wxLogChain git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@15288 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775 --- 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 )