X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/9a83f860948059b0273b5cc6d9e43fadad3ebfca..4b263e5ef358411a345dee9ffef3ba69c19be40e:/samples/widgets/notebook.cpp diff --git a/samples/widgets/notebook.cpp b/samples/widgets/notebook.cpp index ded5de3900..0a5d282103 100644 --- a/samples/widgets/notebook.cpp +++ b/samples/widgets/notebook.cpp @@ -4,9 +4,8 @@ // Purpose: Part of the widgets sample showing book controls // Author: Vadim Zeitlin, Wlodzimierz ABX Skiba // Created: 06.04.01 -// Id: $Id$ // Copyright: (c) 2001 Vadim Zeitlin, 2006 Wlodzimierz Skiba -// License: wxWindows license +// Licence: wxWindows licence ///////////////////////////////////////////////////////////////////////////// // ============================================================================ @@ -335,11 +334,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