]> git.saurik.com Git - wxWidgets.git/blobdiff - src/msw/dialup.cpp
Add some version checks to help compiling on OSX.
[wxWidgets.git] / src / msw / dialup.cpp
index 24c13f4da6f57112b2cd800623aaf56912ea36a8..7b536c9e9e9d83cc3af01965a2388d442932d360 100644 (file)
@@ -39,6 +39,7 @@
 
 #include "wx/generic/choicdgg.h"
 
+#include "wx/msw/private.h"
 #include "wx/dynlib.h"
 
 wxDEFINE_EVENT( wxEVT_DIALUP_CONNECTED, wxDialUpEvent );
@@ -596,11 +597,7 @@ void wxDialUpManagerMSW::CleanUpThreadData()
         m_hThread = 0;
     }
 
-    if ( m_data )
-    {
-        delete m_data;
-        m_data = NULL;
-    }
+    wxDELETE(m_data);
 }
 
 // ----------------------------------------------------------------------------