From 29ddd491307c23f9841ab30dff24c373c4480ce9 Mon Sep 17 00:00:00 2001 From: Lionel Debroux Date: Sat, 20 Oct 2007 09:31:32 +0200 Subject: [PATCH] comctl32: Remove redundant NULL check before free (found by Smatch). --- dlls/comctl32/toolbar.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/dlls/comctl32/toolbar.c b/dlls/comctl32/toolbar.c index 8ca4e6b2751..921c0ff27ca 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); }