X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/c4825ef73a5f190b8f39c59df098c3f39fa4464b..bb69632a56a827bed4cfae842bfffa88259ac1aa:/src/osx/window_osx.cpp diff --git a/src/osx/window_osx.cpp b/src/osx/window_osx.cpp index 3ad07ae4d2..ebec85144e 100644 --- a/src/osx/window_osx.cpp +++ b/src/osx/window_osx.cpp @@ -448,8 +448,7 @@ void wxWindowMac::DoReleaseMouse() void wxWindowMac::SetDropTarget(wxDropTarget *pDropTarget) { - if ( m_dropTarget != NULL ) - delete m_dropTarget; + delete m_dropTarget; m_dropTarget = pDropTarget; if ( m_dropTarget != NULL )