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
adefacfd
Commit
adefacfd
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 HTMLRect.
Signed-off-by:
Gabriel Ivăncescu
<
gabrielopcode@gmail.com
>
parent
7913019f
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
24 additions
and
6 deletions
+24
-6
htmlelem.c
dlls/mshtml/htmlelem.c
+24
-6
No files found.
dlls/mshtml/htmlelem.c
View file @
adefacfd
...
...
@@ -582,12 +582,8 @@ static ULONG WINAPI HTMLRect_Release(IHTMLRect *iface)
TRACE
(
"(%p) ref=%ld
\n
"
,
This
,
ref
);
if
(
!
ref
)
{
if
(
This
->
nsrect
)
nsIDOMClientRect_Release
(
This
->
nsrect
);
if
(
!
ref
)
release_dispex
(
&
This
->
dispex
);
free
(
This
);
}
return
ref
;
}
...
...
@@ -841,19 +837,41 @@ static const IHTMLRect2Vtbl HTMLRect2Vtbl = {
HTMLRect2_get_height
,
};
static
inline
HTMLRect
*
HTMLRect_from_DispatchEx
(
DispatchEx
*
iface
)
{
return
CONTAINING_RECORD
(
iface
,
HTMLRect
,
dispex
);
}
static
void
HTMLRect_unlink
(
DispatchEx
*
dispex
)
{
HTMLRect
*
This
=
HTMLRect_from_DispatchEx
(
dispex
);
unlink_ref
(
&
This
->
nsrect
);
}
static
void
HTMLRect_destructor
(
DispatchEx
*
dispex
)
{
HTMLRect
*
This
=
HTMLRect_from_DispatchEx
(
dispex
);
free
(
This
);
}
void
HTMLRect_init_dispex_info
(
dispex_data_t
*
info
,
compat_mode_t
mode
)
{
if
(
mode
>=
COMPAT_MODE_IE9
)
dispex_info_add_interface
(
info
,
IHTMLRect2_tid
,
NULL
);
}
static
const
dispex_static_data_vtbl_t
HTMLRect_dispex_vtbl
=
{
HTMLRect_destructor
,
HTMLRect_unlink
};
static
const
tid_t
HTMLRect_iface_tids
[]
=
{
IHTMLRect_tid
,
0
};
static
dispex_static_data_t
HTMLRect_dispex
=
{
L"ClientRect"
,
NULL
,
&
HTMLRect_dispex_vtbl
,
IHTMLRect_tid
,
HTMLRect_iface_tids
,
HTMLRect_init_dispex_info
...
...
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