comctl32/listview: Fix memory leak on subrange deletion.
This commit is contained in:
parent
7fe78c14e9
commit
6ca7654ec7
|
@ -3198,6 +3198,7 @@ static BOOL ranges_del(RANGES ranges, RANGE range)
|
|||
(chkrgn->lower == range.lower) )
|
||||
{
|
||||
DPA_DeletePtr(ranges->hdpa, index);
|
||||
Free(chkrgn);
|
||||
break;
|
||||
}
|
||||
/* case 2: engulf */
|
||||
|
@ -3205,6 +3206,7 @@ static BOOL ranges_del(RANGES ranges, RANGE range)
|
|||
(chkrgn->lower >= range.lower) )
|
||||
{
|
||||
DPA_DeletePtr(ranges->hdpa, index);
|
||||
Free(chkrgn);
|
||||
}
|
||||
/* case 3: overlap upper */
|
||||
else if ( (chkrgn->upper <= range.upper) &&
|
||||
|
|
Loading…
Reference in New Issue