Palette::~Palette() {
Release();
- delete [] entries;
- entries = 0;
+ wxDELETEA(entries);
}
void Palette::Release() {
}
ListBoxImpl::~ListBoxImpl() {
- if (imgList) {
- delete imgList;
- imgList = NULL;
- }
- if (imgTypeMap) {
- delete imgTypeMap;
- imgTypeMap = NULL;
- }
+ wxDELETE(imgList);
+ wxDELETE(imgTypeMap);
}
}
void ListBoxImpl::ClearRegisteredImages() {
- if (imgList) {
- delete imgList;
- imgList = NULL;
- }
- if (imgTypeMap) {
- delete imgTypeMap;
- imgTypeMap = NULL;
- }
+ wxDELETE(imgList);
+ wxDELETE(imgTypeMap);
if (wid)
GETLB(wid)->SetImageList(NULL, wxIMAGE_LIST_SMALL);
}