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

This commit is contained in:
Lionel Debroux 2007-10-20 09:30:44 +02:00 committed by Alexandre Julliard
parent 96e4320feb
commit 58b743161b
1 changed files with 1 additions and 2 deletions

View File

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