X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/03647350fc7cd141953c72e0284e928847d30f44..b35549525f2a8dd584fdda158829e8406da0541e:/src/x11/bitmap.cpp?ds=inline diff --git a/src/x11/bitmap.cpp b/src/x11/bitmap.cpp index ce4fd780e3..fac57599b1 100644 --- a/src/x11/bitmap.cpp +++ b/src/x11/bitmap.cpp @@ -1072,8 +1072,7 @@ void wxBitmap::SetPalette(const wxPalette& palette) wxT("cannot set palette for bitmap of this depth")); AllocExclusive(); - delete M_BMPDATA->m_palette; - M_BMPDATA->m_palette = NULL; + wxDELETE(M_BMPDATA->m_palette); if (!palette.Ok()) return;