X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/9a83f860948059b0273b5cc6d9e43fadad3ebfca..c6aabd1ca9a5590d5dd8e89d83a5fba74c69c931:/samples/widgets/notebook.cpp diff --git a/samples/widgets/notebook.cpp b/samples/widgets/notebook.cpp index ded5de3900..55e30d6cf4 100644 --- a/samples/widgets/notebook.cpp +++ b/samples/widgets/notebook.cpp @@ -335,11 +335,7 @@ void BookWidgetsPage::CreateImageList() } 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