Commit d4c96034 authored by Nikolay Sivov's avatar Nikolay Sivov Committed by Alexandre Julliard

comctl32/tooltips: Remove redundant condition.

parent 30b0f3d2
......@@ -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];
TOOLTIPS_FreeToolText (toolPtr);
TOOLTIPS_ResetSubclass (toolPtr);
}
for (i = 0; i < infoPtr->uNumTools; i++)
{
toolPtr = &infoPtr->tools[i];
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 */
......
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