Fixed crash on exit caused by deleting old logger in wxLogChain dtor.

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/branches/WX_2_8_BRANCH@67119 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
Julian Smart
2011-03-03 15:09:44 +00:00
parent fc2f7de763
commit afa37904f2
2 changed files with 3 additions and 2 deletions

View File

@@ -99,6 +99,7 @@ All:
- Added wxT_2() for forward compatibility with wxWidgets 3. Use it in - Added wxT_2() for forward compatibility with wxWidgets 3. Use it in
initialization of wxCmdLineEntryDesc struct elements and (very few) other initialization of wxCmdLineEntryDesc struct elements and (very few) other
places where wxT() is required currently but won't be allowed in v3. places where wxT() is required currently but won't be allowed in v3.
- Fixed crash on exit caused by deleting old logger in wxLogChain dtor.
All (GUI): All (GUI):

View File

@@ -631,7 +631,7 @@ wxLogChain::wxLogChain(wxLog *logger)
wxLogChain::~wxLogChain() wxLogChain::~wxLogChain()
{ {
delete m_logOld; wxLog::SetActiveTarget(m_logOld);
if ( m_logNew != this ) if ( m_logNew != this )
delete m_logNew; delete m_logNew;