comctl32: Remove redundant NULL check before free (found by Smatch).
This commit is contained in:
parent
96e4320feb
commit
58b743161b
|
@ -3064,7 +3064,6 @@ TAB_Destroy (TAB_INFO *infoPtr)
|
||||||
|
|
||||||
if (infoPtr->items) {
|
if (infoPtr->items) {
|
||||||
for (iItem = 0; iItem < infoPtr->uNumItem; iItem++) {
|
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);
|
Free (infoPtr->items);
|
||||||
|
|
Loading…
Reference in New Issue