delete the old log target if one had been created somehow even before DoCommonPreInit() was called

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@39072 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
Vadim Zeitlin
2006-05-06 18:44:03 +00:00
parent 85d3e5a9ad
commit 5db920c9dd

View File

@@ -217,7 +217,7 @@ static bool DoCommonPreInit()
// initialization simply disappear under Windows
//
// note that we will delete this log target below
wxLog::SetActiveTarget(new wxLogBuffer);
delete wxLog::SetActiveTarget(new wxLogBuffer);
#endif // wxUSE_LOG
return true;