OSDN Git Service

Update CWindowsManagerDialog (#811)
authorFlaviu_ <37621568+flaviu22@users.noreply.github.com>
Fri, 4 Jun 2021 15:31:13 +0000 (18:31 +0300)
committerGitHub <noreply@github.com>
Fri, 4 Jun 2021 15:31:13 +0000 (00:31 +0900)
Make no sense to test m_pIL for nullptr in CWindowsManagerDialog destructor

Src/WindowsManagerDialog.cpp

index dd97d8b..6f2791b 100644 (file)
@@ -29,8 +29,7 @@ CWindowsManagerDialog::~CWindowsManagerDialog()
 {
        if (NULL != m_pIL->GetSafeHandle())
                m_pIL->DeleteImageList();
-       if (NULL != m_pIL)
-               delete m_pIL;
+       delete m_pIL;
 }
 
 void CWindowsManagerDialog::DoDataExchange(CDataExchange* pDX)