Remove redundant checks for NULL before calling delete
This commit is contained in:
@@ -58,10 +58,7 @@ wxIMPLEMENT_DYNAMIC_CLASS(wxGenericDragImage, wxObject);
|
||||
|
||||
wxGenericDragImage::~wxGenericDragImage()
|
||||
{
|
||||
if (m_windowDC)
|
||||
{
|
||||
delete m_windowDC;
|
||||
}
|
||||
delete m_windowDC;
|
||||
}
|
||||
|
||||
void wxGenericDragImage::Init()
|
||||
|
Reference in New Issue
Block a user