comctl32: remove redundant NULL check before free (found by Smatch).
Lionel Debroux
lionel_debroux at yahoo.fr
Sat Oct 20 02:30:44 CDT 2007
---
dlls/comctl32/tab.c | 3 +--
1 files changed, 1 insertions(+), 2 deletions(-)
diff --git a/dlls/comctl32/tab.c b/dlls/comctl32/tab.c
index d3cf0fd..2db8cfe 100644
--- a/dlls/comctl32/tab.c
+++ b/dlls/comctl32/tab.c
@@ -3064,8 +3064,7 @@ TAB_Destroy (TAB_INFO *infoPtr)
if (infoPtr->items) {
for (iItem = 0; iItem < infoPtr->uNumItem; iItem++) {
- if (TAB_GetItem(infoPtr, iItem)->pszText)
- Free (TAB_GetItem(infoPtr, iItem)->pszText);
+ Free (TAB_GetItem(infoPtr, iItem)->pszText);
}
Free (infoPtr->items);
}
--
1.5.3.2
--------------060904040409000000000307--
More information about the wine-patches
mailing list