]> git.saurik.com Git - wxWidgets.git/blobdiff - src/os2/app.cpp
small bug fix for composite options
[wxWidgets.git] / src / os2 / app.cpp
index ee11aa649bb44e1a7c23c0f31b611171c6f87910..7cb3bd50e67a802fcf359cc7835876020478b808 100644 (file)
@@ -107,7 +107,6 @@ MRESULT wxWndProc( HWND
 // wxApp
 // ---------------------------------------------------------------------------
 
-#if !USE_SHARED_LIBRARY
     IMPLEMENT_DYNAMIC_CLASS(wxApp, wxEvtHandler)
 
     BEGIN_EVENT_TABLE(wxApp, wxEvtHandler)
@@ -115,7 +114,6 @@ MRESULT wxWndProc( HWND
         EVT_END_SESSION(wxApp::OnEndSession)
         EVT_QUERY_END_SESSION(wxApp::OnQueryEndSession)
     END_EVENT_TABLE()
-#endif
 
 //// Initialize
 bool wxApp::Initialize(
@@ -512,6 +510,7 @@ wxApp::wxApp()
 
 wxApp::~wxApp()
 {
+#ifdef wxUSE_UNICODE
     // Delete command-line args
     int i;
     for (i = 0; i < argc; i++)
@@ -519,6 +518,7 @@ wxApp::~wxApp()
         delete[] argv[i];
     }
     delete[] argv;
+#endif
 }
 
 bool wxApp::Initialized()