Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
W
wine-winehq
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Registry
Registry
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
wine
wine-winehq
Commits
6ca7654e
Commit
6ca7654e
authored
Jan 06, 2010
by
Nikolay Sivov
Committed by
Alexandre Julliard
Jan 07, 2010
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
comctl32/listview: Fix memory leak on subrange deletion.
parent
7fe78c14
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
7 additions
and
5 deletions
+7
-5
listview.c
dlls/comctl32/listview.c
+7
-5
No files found.
dlls/comctl32/listview.c
View file @
6ca7654e
...
...
@@ -3183,28 +3183,30 @@ static BOOL ranges_del(RANGES ranges, RANGE range)
TRACE
(
"(%s)
\n
"
,
debugrange
(
&
range
));
ranges_check
(
ranges
,
"before del"
);
/* we don't use DPAS_SORTED here, since we need *
* to find the first overlapping range */
index
=
DPA_Search
(
ranges
->
hdpa
,
&
range
,
0
,
ranges_cmp
,
0
,
0
);
while
(
index
!=
-
1
)
while
(
index
!=
-
1
)
{
chkrgn
=
DPA_GetPtr
(
ranges
->
hdpa
,
index
);
TRACE
(
"Matches range %s @%d
\n
"
,
debugrange
(
chkrgn
),
index
);
TRACE
(
"Matches range %s @%d
\n
"
,
debugrange
(
chkrgn
),
index
);
/* case 1: Same range */
if
(
(
chkrgn
->
upper
==
range
.
upper
)
&&
(
chkrgn
->
lower
==
range
.
lower
)
)
{
DPA_DeletePtr
(
ranges
->
hdpa
,
index
);
Free
(
chkrgn
);
break
;
}
/* case 2: engulf */
else
if
(
(
chkrgn
->
upper
<=
range
.
upper
)
&&
(
chkrgn
->
lower
>=
range
.
lower
)
)
(
chkrgn
->
lower
>=
range
.
lower
)
)
{
DPA_DeletePtr
(
ranges
->
hdpa
,
index
);
Free
(
chkrgn
);
}
/* case 3: overlap upper */
else
if
(
(
chkrgn
->
upper
<=
range
.
upper
)
&&
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment