projects
/
wxWidgets.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
Rewind the input stream after failing to load image from it.
[wxWidgets.git]
/
src
/
mgl
/
bitmap.cpp
diff --git
a/src/mgl/bitmap.cpp
b/src/mgl/bitmap.cpp
index 3c717d4fe9fa621ca35f8e1e71ed2bc9fde066a2..5cf71c16727912698a15276b8bfdc855eeb20bef 100644
(file)
--- a/
src/mgl/bitmap.cpp
+++ b/
src/mgl/bitmap.cpp
@@
-498,8
+498,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_BMPDATA->m_palette;
- M_BMPDATA->m_palette = NULL;
+ wxDELETE(M_BMPDATA->m_palette);
if ( !palette.Ok() ) return;