Remove redundant checks for NULL before calling delete
This commit is contained in:
@@ -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;
|
||||
|
Reference in New Issue
Block a user