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
20b769dc
Commit
20b769dc
authored
Aug 04, 2023
by
Gabriel Ivăncescu
Committed by
Alexandre Julliard
Aug 08, 2023
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
mshtml: Use unlink and destructor in the vtbl for HTMLDOMChildrenCollection.
Signed-off-by:
Gabriel Ivăncescu
<
gabrielopcode@gmail.com
>
parent
6919d553
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
16 additions
and
6 deletions
+16
-6
htmlnode.c
dlls/mshtml/htmlnode.c
+16
-6
No files found.
dlls/mshtml/htmlnode.c
View file @
20b769dc
...
...
@@ -239,10 +239,8 @@ static ULONG WINAPI HTMLDOMChildrenCollection_Release(IHTMLDOMChildrenCollection
TRACE
(
"(%p) ref=%ld
\n
"
,
This
,
ref
);
if
(
!
ref
)
{
nsIDOMNodeList_Release
(
This
->
nslist
);
free
(
This
);
}
if
(
!
ref
)
release_dispex
(
&
This
->
dispex
);
return
ref
;
}
...
...
@@ -364,6 +362,18 @@ static inline HTMLDOMChildrenCollection *impl_from_DispatchEx(DispatchEx *iface)
return
CONTAINING_RECORD
(
iface
,
HTMLDOMChildrenCollection
,
dispex
);
}
static
void
HTMLDOMChildrenCollection_unlink
(
DispatchEx
*
dispex
)
{
HTMLDOMChildrenCollection
*
This
=
impl_from_DispatchEx
(
dispex
);
unlink_ref
(
&
This
->
nslist
);
}
static
void
HTMLDOMChildrenCollection_destructor
(
DispatchEx
*
dispex
)
{
HTMLDOMChildrenCollection
*
This
=
impl_from_DispatchEx
(
dispex
);
free
(
This
);
}
#define DISPID_CHILDCOL_0 MSHTML_DISPID_CUSTOM_MIN
static
HRESULT
HTMLDOMChildrenCollection_get_dispid
(
DispatchEx
*
dispex
,
BSTR
name
,
DWORD
flags
,
DISPID
*
dispid
)
...
...
@@ -433,8 +443,8 @@ static HRESULT HTMLDOMChildrenCollection_invoke(DispatchEx *dispex, DISPID id, L
}
static
const
dispex_static_data_vtbl_t
HTMLDOMChildrenCollection_dispex_vtbl
=
{
NULL
,
NULL
,
HTMLDOMChildrenCollection_destructor
,
HTMLDOMChildrenCollection_unlink
,
NULL
,
HTMLDOMChildrenCollection_get_dispid
,
HTMLDOMChildrenCollection_get_name
,
...
...
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