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
62d39e86
Commit
62d39e86
authored
Aug 03, 2023
by
Gabriel Ivăncescu
Committed by
Alexandre Julliard
Aug 04, 2023
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
mshtml: Use unlink and destructor in the vtbl for HTMLDOMAttribute.
Signed-off-by:
Gabriel Ivăncescu
<
gabrielopcode@gmail.com
>
parent
1904dd0b
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
27 additions
and
7 deletions
+27
-7
htmlattr.c
dlls/mshtml/htmlattr.c
+27
-7
No files found.
dlls/mshtml/htmlattr.c
View file @
62d39e86
...
...
@@ -79,13 +79,8 @@ static ULONG WINAPI HTMLDOMAttribute_Release(IHTMLDOMAttribute *iface)
TRACE
(
"(%p) ref=%ld
\n
"
,
This
,
ref
);
if
(
!
ref
)
{
assert
(
!
This
->
elem
);
if
(
!
ref
)
release_dispex
(
&
This
->
dispex
);
VariantClear
(
&
This
->
value
);
free
(
This
->
name
);
free
(
This
);
}
return
ref
;
}
...
...
@@ -480,6 +475,31 @@ static const IHTMLDOMAttribute2Vtbl HTMLDOMAttribute2Vtbl = {
HTMLDOMAttribute2_cloneNode
};
static
inline
HTMLDOMAttribute
*
impl_from_DispatchEx
(
DispatchEx
*
iface
)
{
return
CONTAINING_RECORD
(
iface
,
HTMLDOMAttribute
,
dispex
);
}
static
void
HTMLDOMAttribute_unlink
(
DispatchEx
*
dispex
)
{
HTMLDOMAttribute
*
This
=
impl_from_DispatchEx
(
dispex
);
unlink_variant
(
&
This
->
value
);
}
static
void
HTMLDOMAttribute_destructor
(
DispatchEx
*
dispex
)
{
HTMLDOMAttribute
*
This
=
impl_from_DispatchEx
(
dispex
);
assert
(
!
This
->
elem
);
VariantClear
(
&
This
->
value
);
free
(
This
->
name
);
free
(
This
);
}
static
const
dispex_static_data_vtbl_t
HTMLDOMAttribute_dispex_vtbl
=
{
HTMLDOMAttribute_destructor
,
HTMLDOMAttribute_unlink
};
static
const
tid_t
HTMLDOMAttribute_iface_tids
[]
=
{
IHTMLDOMAttribute_tid
,
IHTMLDOMAttribute2_tid
,
...
...
@@ -487,7 +507,7 @@ static const tid_t HTMLDOMAttribute_iface_tids[] = {
};
static
dispex_static_data_t
HTMLDOMAttribute_dispex
=
{
L"Attr"
,
NULL
,
&
HTMLDOMAttribute_dispex_vtbl
,
DispHTMLDOMAttribute_tid
,
HTMLDOMAttribute_iface_tids
};
...
...
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