X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/dfbe9d4f59b77cd5e7b99d6423988751b7b5549c..21b5902b816cb65bcfe2629fb8b85deb0f14d807:/src/dfb/bitmap.cpp diff --git a/src/dfb/bitmap.cpp b/src/dfb/bitmap.cpp index 4496298f13..35206ace5f 100644 --- a/src/dfb/bitmap.cpp +++ b/src/dfb/bitmap.cpp @@ -394,11 +394,6 @@ public: IMPLEMENT_DYNAMIC_CLASS(wxBitmap, wxBitmapBase) -wxBitmap::wxBitmap(int width, int height, int depth) -{ - Create(width, height, depth); -} - bool wxBitmap::Create(const wxIDirectFBSurfacePtr& surface) { UnRef(); @@ -701,8 +696,7 @@ void wxBitmap::SetPalette(const wxPalette& palette) wxCHECK_RET( GetDepth() > 1 && GetDepth() <= 8, wxT("cannot set palette for bitmap of this depth") ); AllocExclusive(); - delete M_BITMAP->m_palette; - M_BITMAP->m_palette = NULL; + wxDELETE(M_BITMAP->m_palette); if ( !palette.Ok() ) return;