projects
/
wxWidgets.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
build fix
[wxWidgets.git]
/
src
/
dfb
/
bitmap.cpp
diff --git
a/src/dfb/bitmap.cpp
b/src/dfb/bitmap.cpp
index 239520cb7cf3416e065371fcfa2d8f032ba05432..35206ace5ff52c08376bb027b671e8bcf8618afe 100644
(file)
--- a/
src/dfb/bitmap.cpp
+++ b/
src/dfb/bitmap.cpp
@@
-696,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;