diff options
Diffstat (limited to 'backends/platform/wince')
-rw-r--r-- | backends/platform/wince/CEgui/GUIElement.cpp | 3 | ||||
-rw-r--r-- | backends/platform/wince/CEgui/ItemSwitch.cpp | 3 | ||||
-rw-r--r-- | backends/platform/wince/missing/missing.cpp | 6 |
3 files changed, 4 insertions, 8 deletions
diff --git a/backends/platform/wince/CEgui/GUIElement.cpp b/backends/platform/wince/CEgui/GUIElement.cpp index a37182e69d..23e7843de1 100644 --- a/backends/platform/wince/CEgui/GUIElement.cpp +++ b/backends/platform/wince/CEgui/GUIElement.cpp @@ -120,8 +120,7 @@ namespace CEGUI { } GUIElement::~GUIElement() { - if (_background) - delete _background; + delete _background; } } diff --git a/backends/platform/wince/CEgui/ItemSwitch.cpp b/backends/platform/wince/CEgui/ItemSwitch.cpp index 445b3bb69b..8e0121f7c4 100644 --- a/backends/platform/wince/CEgui/ItemSwitch.cpp +++ b/backends/platform/wince/CEgui/ItemSwitch.cpp @@ -57,8 +57,7 @@ namespace CEGUI { } ItemSwitch::~ItemSwitch() { - if (_backgroundFalse) - delete _backgroundFalse; + delete _backgroundFalse; } bool ItemSwitch::action(int x, int y, bool pushed) { diff --git a/backends/platform/wince/missing/missing.cpp b/backends/platform/wince/missing/missing.cpp index 2d9765b0f2..532f1d2e89 100644 --- a/backends/platform/wince/missing/missing.cpp +++ b/backends/platform/wince/missing/missing.cpp @@ -288,8 +288,7 @@ struct dirent* readdir(DIR* dir) { } WideCharToMultiByte(CP_ACP, 0, wfd.cFileName, -1, nameFound, MAX_PATH, NULL, NULL); - if (dir->dd_dir.d_name) - free(dir->dd_dir.d_name); + free(dir->dd_dir.d_name); dir->dd_dir.d_name = strdup(nameFound); dir->dd_dir.d_namlen = strlen(nameFound); @@ -307,8 +306,7 @@ int closedir(DIR* dir) { if (dir->dd_handle) FindClose((HANDLE)dir->dd_handle); - if (dir->dd_dir.d_name) - free(dir->dd_dir.d_name); + free(dir->dd_dir.d_name); free(dir); return 1; } |