Remove redundant checks for NULL before calling delete

This commit is contained in:
Paul Cornett
2020-02-02 23:51:39 -08:00
parent 05183b7099
commit 0ca45d1a59
23 changed files with 39 additions and 75 deletions

View File

@@ -5777,7 +5777,7 @@ void wxWindowGTK::SetDropTarget( wxDropTarget *dropTarget )
if (m_dropTarget) m_dropTarget->GtkUnregisterWidget( dnd_widget );
if (m_dropTarget) delete m_dropTarget;
delete m_dropTarget;
m_dropTarget = dropTarget;
if (m_dropTarget) m_dropTarget->GtkRegisterWidget( dnd_widget );