]> git.saurik.com Git - wxWidgets.git/blobdiff - src/osx/window_osx.cpp
minor fixes; replace references to Windows95 with references to wxMSW where possible
[wxWidgets.git] / src / osx / window_osx.cpp
index 3ad07ae4d2c168047fb2bd121fdaaf34e4133f40..ebec85144e22944b258701de7a433a3cf11b0437 100644 (file)
@@ -448,8 +448,7 @@ void wxWindowMac::DoReleaseMouse()
 
 void wxWindowMac::SetDropTarget(wxDropTarget *pDropTarget)
 {
 
 void wxWindowMac::SetDropTarget(wxDropTarget *pDropTarget)
 {
-    if ( m_dropTarget != NULL )
-        delete m_dropTarget;
+    delete m_dropTarget;
 
     m_dropTarget = pDropTarget;
     if ( m_dropTarget != NULL )
 
     m_dropTarget = pDropTarget;
     if ( m_dropTarget != NULL )