Initialize wxLogWindow::m_pLogFrame in ctor to avoid (rare) crash.
authorVadim Zeitlin <vadim@wxwidgets.org>
Wed, 15 Dec 2010 13:36:44 +0000 (13:36 +0000)
committerVadim Zeitlin <vadim@wxwidgets.org>
Wed, 15 Dec 2010 13:36:44 +0000 (13:36 +0000)
commit0538419f9e7d1fd4af57f2f4e38c339cd091b0c5
treeb590e400cc36092a490371e218d9913b4850927e
parent66f75561893ea7b4bf429d1882d9cc0407ba932d
Initialize wxLogWindow::m_pLogFrame in ctor to avoid (rare) crash.

If the log frame creation itself generates log messages, the code using
wxLogWindow could crash because its m_pLogFrame member variable wasn't
initialized yet at this moment.

Do set it to NULL initially now to avoid this.

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