really fixed memory leak in wxLogChain
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@15289 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
parent
199e91fb67
commit
e95f8fde77
@ -770,7 +770,10 @@ wxLogChain::wxLogChain(wxLog *logger)
|
|||||||
|
|
||||||
wxLogChain::~wxLogChain()
|
wxLogChain::~wxLogChain()
|
||||||
{
|
{
|
||||||
delete m_logNew;
|
delete m_logOld;
|
||||||
|
|
||||||
|
if ( m_logNew != this )
|
||||||
|
delete m_logNew;
|
||||||
}
|
}
|
||||||
|
|
||||||
void wxLogChain::SetLog(wxLog *logger)
|
void wxLogChain::SetLog(wxLog *logger)
|
||||||
|
Loading…
Reference in New Issue
Block a user