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: 29ddd491307c23f9841ab30dff24c373c4480ce9
URL:    http://source.winehq.org/git/wine.git/?a=commit;h=29ddd491307c23f9841ab30dff24c373c4480ce9

Author: Lionel Debroux <lionel_debroux at yahoo.fr>
Date:   Sat Oct 20 09:31:32 2007 +0200

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

---

 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);
     }




More information about the wine-cvs mailing list