]> git.saurik.com Git - wxWidgets.git/blobdiff - samples/widgets/notebook.cpp
Fix non-PCH builds (closes #12217)
[wxWidgets.git] / samples / widgets / notebook.cpp
index ded5de39005a79ec12b68446eff84e8005488f1b..55e30d6cf4e67afbfb8cf684738c4b1378661009 100644 (file)
@@ -335,11 +335,7 @@ void BookWidgetsPage::CreateImageList()
     }
     else // no images
     {
     }
     else // no images
     {
-        if ( m_imageList )
-        {
-            delete m_imageList;
-            m_imageList = NULL;
-        }
+        wxDELETE(m_imageList);
     }
 
     // because of the bug in wxMSW we can't use SetImageList(NULL) - although
     }
 
     // because of the bug in wxMSW we can't use SetImageList(NULL) - although