comctl32: remove redundant NULL check before free (found by Smatch).

Lionel Debroux lionel_debroux at yahoo.fr
Sat Oct 20 02:31:32 CDT 2007


---
 dlls/comctl32/toolbar.c |    3 +--
 1 files changed, 1 insertions(+), 2 deletions(-)

diff --git a/dlls/comctl32/toolbar.c b/dlls/comctl32/toolbar.c
index 8ca4e6b..921c0ff 100644
--- a/dlls/comctl32/toolbar.c
+++ b/dlls/comctl32/toolbar.c
@@ -5430,8 +5430,7 @@ TOOLBAR_Destroy (HWND hwnd, WPARAM wParam, LPARAM lParam)
     if (infoPtr->strings) {
 	INT i;
 	for (i = 0; i < infoPtr->nNumStrings; i++)
-	    if (infoPtr->strings[i])
-		Free (infoPtr->strings[i]);
+	    Free (infoPtr->strings[i]);
 
 	Free (infoPtr->strings);
     }
-- 
1.5.3.2


--------------070501070704070806090705--



More information about the wine-patches mailing list