]> git.saurik.com Git - wxWidgets.git/blobdiff - samples/widgets/statbmp.cpp
Update configuration for OpenVMS
[wxWidgets.git] / samples / widgets / statbmp.cpp
index 5305c650486a1b810639e3a3966444ee20355f97..c5f1a1f09b0cb705f1c86a0fb4e4ee1a72799d62 100644 (file)
@@ -6,7 +6,7 @@
 // Created:     2008-06-19
 // Id:          $Id$
 // Copyright:   (c) 2008 Marcin Wojdyr
-// License:     wxWindows license
+// Licence:     wxWindows licence
 /////////////////////////////////////////////////////////////////////////////
 
 // ============================================================================
@@ -115,8 +115,7 @@ void StatBmpWidgetsPage::CreateContent()
 
 void StatBmpWidgetsPage::RecreateWidget()
 {
-    delete m_statbmp;
-    m_statbmp = NULL;
+    wxDELETE(m_statbmp);
 
     wxString filepath = m_filepicker->GetPath();
     if ( filepath.empty() )