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;