OSDN Git Service

WindowsManagerDialog.cpp: Fix warning C6001: Using uninitialized memory 'this'.
authorTakashi Sawanaka <sdottaka@users.sourceforge.net>
Fri, 15 May 2020 15:47:20 +0000 (00:47 +0900)
committerTakashi Sawanaka <sdottaka@users.sourceforge.net>
Fri, 15 May 2020 15:47:20 +0000 (00:47 +0900)
Src/WindowsManagerDialog.cpp

index f074821..db85669 100644 (file)
@@ -225,11 +225,10 @@ void CWindowsManagerDialog::OnCancel()
 void CWindowsManagerDialog::PostNcDestroy()
 {
        // TODO: Add your specialized code here and/or call the base class
+       CDialog::PostNcDestroy();
 
        if (m_bAutoCleanup)
                delete this;
-
-       CDialog::PostNcDestroy();
 }
 
 void CWindowsManagerDialog::OnDestroy()