Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
W
wine-cw
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-cw
Commits
0755a581
Commit
0755a581
authored
Jun 21, 2023
by
Gabriel Ivăncescu
Committed by
Alexandre Julliard
Jun 22, 2023
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
mshtml: Fix element leaks in get_elem_source_index.
Signed-off-by:
Gabriel Ivăncescu
<
gabrielopcode@gmail.com
>
parent
ffb56bf7
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
1 deletion
+5
-1
htmlelemcol.c
dlls/mshtml/htmlelemcol.c
+5
-1
No files found.
dlls/mshtml/htmlelemcol.c
View file @
0755a581
...
...
@@ -778,8 +778,8 @@ HRESULT get_elem_source_index(HTMLElement *elem, LONG *ret)
nsIDOMNode
*
parent_node
,
*
iter
;
UINT16
parent_type
;
HTMLDOMNode
*
node
;
int
i
;
nsresult
nsres
;
unsigned
i
,
j
;
HRESULT
hres
;
iter
=
elem
->
node
.
nsnode
;
...
...
@@ -830,7 +830,11 @@ HRESULT get_elem_source_index(HTMLElement *elem, LONG *ret)
break
;
}
IHTMLDOMNode_Release
(
&
node
->
IHTMLDOMNode_iface
);
for
(
j
=
0
;
j
<
buf
.
len
;
j
++
)
IHTMLDOMNode_Release
(
&
buf
.
buf
[
j
]
->
node
.
IHTMLDOMNode_iface
);
free
(
buf
.
buf
);
if
(
i
==
buf
.
len
)
{
FIXME
(
"The element is not in parent's child list?
\n
"
);
return
E_UNEXPECTED
;
...
...
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