comctl32/tooltips: Remove redundant condition.
Signed-off-by: Nikolay Sivov <nsivov@codeweavers.com> Signed-off-by: Alexandre Julliard <julliard@winehq.org>
This commit is contained in:
parent
30b0f3d212
commit
d4c96034d0
|
@ -1838,19 +1838,16 @@ TOOLTIPS_Destroy (TOOLTIPS_INFO *infoPtr)
|
|||
TTTOOL_INFO *toolPtr;
|
||||
UINT i;
|
||||
|
||||
/* free tools */
|
||||
if (infoPtr->tools) {
|
||||
for (i = 0; i < infoPtr->uNumTools; i++)
|
||||
{
|
||||
toolPtr = &infoPtr->tools[i];
|
||||
for (i = 0; i < infoPtr->uNumTools; i++)
|
||||
{
|
||||
toolPtr = &infoPtr->tools[i];
|
||||
|
||||
TOOLTIPS_FreeToolText (toolPtr);
|
||||
TOOLTIPS_ResetSubclass (toolPtr);
|
||||
}
|
||||
|
||||
Free (infoPtr->tools);
|
||||
TOOLTIPS_FreeToolText (toolPtr);
|
||||
TOOLTIPS_ResetSubclass (toolPtr);
|
||||
}
|
||||
|
||||
Free (infoPtr->tools);
|
||||
|
||||
/* free title string */
|
||||
Free (infoPtr->pszTitle);
|
||||
/* free title icon if not a standard one */
|
||||
|
|
Loading…
Reference in New Issue