diff --git a/src/msw/main.cpp b/src/msw/main.cpp index e45ca2a958..ad0616bef4 100644 --- a/src/msw/main.cpp +++ b/src/msw/main.cpp @@ -31,7 +31,6 @@ #include "wx/cmdline.h" #include "wx/dynlib.h" -#include "wx/scopeguard.h" #include "wx/msw/private.h" #include "wx/msw/seh.h" @@ -226,7 +225,7 @@ struct wxMSWCommandLineArguments argv[argc] = NULL; } - void Free() + ~wxMSWCommandLineArguments() { if ( !argc ) return; @@ -298,8 +297,6 @@ WXDLLEXPORT int wxEntry(HINSTANCE hInstance, if ( !wxMSWEntryCommon(hInstance, nCmdShow) ) return -1; - wxON_BLOCK_EXIT_OBJ0(wxArgs, wxMSWCommandLineArguments::Free); - return wxEntry(wxArgs.argc, wxArgs.argv); }