]> git.saurik.com Git - wxWidgets.git/commitdiff
fixed memory leak in wxLogChain
authorVadim Zeitlin <vadim@wxwidgets.org>
Sat, 27 Apr 2002 22:33:26 +0000 (22:33 +0000)
committerVadim Zeitlin <vadim@wxwidgets.org>
Sat, 27 Apr 2002 22:33:26 +0000 (22:33 +0000)
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@15288 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775

src/common/log.cpp

index 510b9399840af23d1bc9c4d9398ad3f1609bf767..4c58a331e24cc7e86a26f4482b604aab5ee77980 100644 (file)
@@ -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 )