From 5db920c9ddce4abf75ae260d60c654cc7287f570 Mon Sep 17 00:00:00 2001 From: Vadim Zeitlin Date: Sat, 6 May 2006 18:44:03 +0000 Subject: [PATCH] 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 --- src/common/init.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/common/init.cpp b/src/common/init.cpp index d126e10b8d..bed80097dd 100644 --- a/src/common/init.cpp +++ b/src/common/init.cpp @@ -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; -- 2.45.2