X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/9a83f860948059b0273b5cc6d9e43fadad3ebfca..71a77e77d1738cd48d7505efda59ab8110d88766:/samples/widgets/notebook.cpp diff --git a/samples/widgets/notebook.cpp b/samples/widgets/notebook.cpp index ded5de3900..71161eea35 100644 --- a/samples/widgets/notebook.cpp +++ b/samples/widgets/notebook.cpp @@ -6,7 +6,7 @@ // Created: 06.04.01 // Id: $Id$ // Copyright: (c) 2001 Vadim Zeitlin, 2006 Wlodzimierz Skiba -// License: wxWindows license +// Licence: wxWindows licence ///////////////////////////////////////////////////////////////////////////// // ============================================================================ @@ -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