X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/470ee7146305a65affc4af7926c88e26cd394ecc..c6aabd1ca9a5590d5dd8e89d83a5fba74c69c931:/samples/widgets/statbmp.cpp diff --git a/samples/widgets/statbmp.cpp b/samples/widgets/statbmp.cpp index 5305c65048..69c67bfe89 100644 --- a/samples/widgets/statbmp.cpp +++ b/samples/widgets/statbmp.cpp @@ -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() )