Restore the old logger in wxLogChain dtor instead of deleting it.
authorVadim Zeitlin <vadim@wxwidgets.org>
Sat, 30 Oct 2010 23:50:28 +0000 (23:50 +0000)
committerVadim Zeitlin <vadim@wxwidgets.org>
Sat, 30 Oct 2010 23:50:28 +0000 (23:50 +0000)
commita16e51b56ac3c46af2f2f7630c8e71b30c2b374d
tree18b09cf7e5a5d9bd2467ee741931ca5af5ece571
parent3120eccfe2b3f02207c4d14f14f76dfd319db309
Restore the old logger in wxLogChain dtor instead of deleting it.

wxLogChain was leaving the global log target pointing to a deleted object,
resulting in crashes when using wxLogWindow without any explicit
SetActiveTarget() calls.

Restore the original logger as the active target in wxLogChain dtor to ensure
that the active log target remains valid.

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@65956 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
src/common/log.cpp