Lionel Debroux : comctl32: Remove redundant NULL check before free ( found by Smatch).
Alexandre Julliard
julliard at winehq.org
Mon Oct 22 09:55:18 CDT 2007
Module: wine
Branch: master
Commit: 58b743161ba4f319f858ad29774c5e91884de996
URL: http://source.winehq.org/git/wine.git/?a=commit;h=58b743161ba4f319f858ad29774c5e91884de996
Author: Lionel Debroux <lionel_debroux at yahoo.fr>
Date: Sat Oct 20 09:30:44 2007 +0200
comctl32: Remove redundant NULL check before free (found by Smatch).
---
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);
}
More information about the wine-cvs
mailing list