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:
@@ -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):
|
||||||
|
|
||||||
|
@@ -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;
|
||||||
|
Reference in New Issue
Block a user