X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/faa112c4ca49e1f1d9467107d6e54cb9986bd900..0d91b2342a1f83b3b9db145c7210efd5d9547cc8:/src/common/init.cpp diff --git a/src/common/init.cpp b/src/common/init.cpp index d126e10b8d..b01d39cd9b 100644 --- a/src/common/init.cpp +++ b/src/common/init.cpp @@ -1,5 +1,5 @@ ///////////////////////////////////////////////////////////////////////////// -// Name: common/init.cpp +// Name: src/common/init.cpp // Purpose: initialisation for the library // Author: Vadim Zeitlin // Modified by: @@ -20,12 +20,11 @@ #include "wx/wxprec.h" #ifdef __BORLANDC__ - #pragma hdrstop + #pragma hdrstop #endif //__BORLANDC__ #ifndef WX_PRECOMP #include "wx/app.h" - #include "wx/debug.h" #include "wx/filefn.h" #include "wx/log.h" #include "wx/thread.h" @@ -217,7 +216,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; @@ -481,4 +480,3 @@ void wxUninitialize() wxEntryCleanup(); } } -