fixed memory leak in wxLogChain
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@15288 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
@@ -768,6 +768,11 @@ wxLogChain::wxLogChain(wxLog *logger)
|
|||||||
m_logOld = wxLog::SetActiveTarget(this);
|
m_logOld = wxLog::SetActiveTarget(this);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
wxLogChain::~wxLogChain()
|
||||||
|
{
|
||||||
|
delete m_logNew;
|
||||||
|
}
|
||||||
|
|
||||||
void wxLogChain::SetLog(wxLog *logger)
|
void wxLogChain::SetLog(wxLog *logger)
|
||||||
{
|
{
|
||||||
if ( m_logNew != this )
|
if ( m_logNew != this )
|
||||||
|
Reference in New Issue
Block a user