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

@@ -1919,8 +1919,7 @@ void wxEvtHandler::DoSetClientObject( wxClientData *data )
wxASSERT_MSG( m_clientDataType != wxClientData_Void,
wxT("can't have both object and void client data") );
if ( m_clientObject )
delete m_clientObject;
delete m_clientObject;
m_clientObject = data;
m_clientDataType = wxClientData_Object;