X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/9a83f860948059b0273b5cc6d9e43fadad3ebfca..708cc39462e4f113ab1a52b502b79d1e473059e7:/src/os2/statbmp.cpp diff --git a/src/os2/statbmp.cpp b/src/os2/statbmp.cpp index 52ba6af126..c80642962f 100644 --- a/src/os2/statbmp.cpp +++ b/src/os2/statbmp.cpp @@ -141,9 +141,7 @@ bool wxStaticBitmap::ImageIsOk() const void wxStaticBitmap::Free() { - if (m_pImage) - delete m_pImage; - m_pImage = NULL; + wxDELETE(m_pImage); } // end of wxStaticBitmap::Free wxSize wxStaticBitmap::DoGetBestSize() const