mirror of
git://source.winehq.org/git/wine.git
synced 2024-10-31 12:19:49 +00:00
comctl32: Free the selection ranges (Coverity).
This commit is contained in:
parent
8105a1207b
commit
3173f17315
1 changed files with 8 additions and 2 deletions
|
@ -3594,9 +3594,15 @@ static void LISTVIEW_SetGroupSelection(LISTVIEW_INFO *infoPtr, INT nItem)
|
|||
POINT ptItem;
|
||||
|
||||
rcItem.left = LVIR_BOUNDS;
|
||||
if (!LISTVIEW_GetItemRect(infoPtr, nItem, &rcItem)) return;
|
||||
if (!LISTVIEW_GetItemRect(infoPtr, nItem, &rcItem)) {
|
||||
ranges_destroy (selection);
|
||||
return;
|
||||
}
|
||||
rcSelMark.left = LVIR_BOUNDS;
|
||||
if (!LISTVIEW_GetItemRect(infoPtr, infoPtr->nSelectionMark, &rcSelMark)) return;
|
||||
if (!LISTVIEW_GetItemRect(infoPtr, infoPtr->nSelectionMark, &rcSelMark)) {
|
||||
ranges_destroy (selection);
|
||||
return;
|
||||
}
|
||||
UnionRect(&rcSel, &rcItem, &rcSelMark);
|
||||
iterator_frameditems(&i, infoPtr, &rcSel);
|
||||
while(iterator_next(&i))
|
||||
|
|
Loading…
Reference in a new issue