Commit 29ddd491 authored by Lionel Debroux's avatar Lionel Debroux Committed by Alexandre Julliard

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

parent 58b74316
......@@ -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);
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment