#pragma implementation "palette.h"
#endif
+#include "wx/defs.h"
+
+#if wxUSE_PALETTE
+
#include "wx/palette.h"
#if !USE_SHARED_LIBRARIES
wxPaletteRefData::~wxPaletteRefData()
{
- delete[] m_palette ;
+ if (m_palette != NULL) {
+ delete[] m_palette ;
+ m_palette = NULL;
+ }
}
wxPalette::wxPalette()
return TRUE;
}
+#endif
+ // wxUSE_PALETTE