no need to test that the pointer is non-NULL before deleting it (closes #10070)
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@56269 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
@@ -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 )
|
||||
|
Reference in New Issue
Block a user