X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/9a83f860948059b0273b5cc6d9e43fadad3ebfca..17d98558b35b75e3cad68d96841b4fa5a0c7e6ee:/src/msw/statbmp.cpp diff --git a/src/msw/statbmp.cpp b/src/msw/statbmp.cpp index 4a460f8816..fbaf004ad1 100644 --- a/src/msw/statbmp.cpp +++ b/src/msw/statbmp.cpp @@ -239,9 +239,7 @@ wxBitmap wxStaticBitmap::GetBitmap() const void wxStaticBitmap::Free() { - delete m_image; - - m_image = NULL; + wxDELETE(m_image); } wxSize wxStaticBitmap::DoGetBestSize() const