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
ae9aa7ec
Commit
ae9aa7ec
authored
Aug 01, 2023
by
Gabriel Ivăncescu
Committed by
Alexandre Julliard
Aug 02, 2023
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
mshtml: Use unlink and destructor in the vtbl for CSSStyle.
Signed-off-by:
Gabriel Ivăncescu
<
gabrielopcode@gmail.com
>
parent
6ad4dd01
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
15 additions
and
7 deletions
+15
-7
htmlstyle.c
dlls/mshtml/htmlstyle.c
+15
-7
No files found.
dlls/mshtml/htmlstyle.c
View file @
ae9aa7ec
...
@@ -4772,12 +4772,8 @@ static ULONG WINAPI HTMLCSSStyleDeclaration_Release(IHTMLCSSStyleDeclaration *if
...
@@ -4772,12 +4772,8 @@ static ULONG WINAPI HTMLCSSStyleDeclaration_Release(IHTMLCSSStyleDeclaration *if
TRACE
(
"(%p) ref=%ld
\n
"
,
This
,
ref
);
TRACE
(
"(%p) ref=%ld
\n
"
,
This
,
ref
);
if
(
!
ref
)
{
if
(
!
ref
)
if
(
This
->
nsstyle
)
nsIDOMCSSStyleDeclaration_Release
(
This
->
nsstyle
);
release_dispex
(
&
This
->
dispex
);
release_dispex
(
&
This
->
dispex
);
free
(
This
);
}
return
ref
;
return
ref
;
}
}
...
@@ -9969,6 +9965,18 @@ static inline CSSStyle *impl_from_DispatchEx(DispatchEx *dispex)
...
@@ -9969,6 +9965,18 @@ static inline CSSStyle *impl_from_DispatchEx(DispatchEx *dispex)
return
CONTAINING_RECORD
(
dispex
,
CSSStyle
,
dispex
);
return
CONTAINING_RECORD
(
dispex
,
CSSStyle
,
dispex
);
}
}
static
void
CSSStyle_unlink
(
DispatchEx
*
dispex
)
{
CSSStyle
*
This
=
impl_from_DispatchEx
(
dispex
);
unlink_ref
(
&
This
->
nsstyle
);
}
static
void
CSSStyle_destructor
(
DispatchEx
*
dispex
)
{
CSSStyle
*
This
=
impl_from_DispatchEx
(
dispex
);
free
(
This
);
}
static
HRESULT
CSSStyle_get_dispid
(
DispatchEx
*
dispex
,
BSTR
name
,
DWORD
flags
,
DISPID
*
dispid
)
static
HRESULT
CSSStyle_get_dispid
(
DispatchEx
*
dispex
,
BSTR
name
,
DWORD
flags
,
DISPID
*
dispid
)
{
{
CSSStyle
*
This
=
impl_from_DispatchEx
(
dispex
);
CSSStyle
*
This
=
impl_from_DispatchEx
(
dispex
);
...
@@ -9997,8 +10005,8 @@ void CSSStyle_init_dispex_info(dispex_data_t *info, compat_mode_t mode)
...
@@ -9997,8 +10005,8 @@ void CSSStyle_init_dispex_info(dispex_data_t *info, compat_mode_t mode)
}
}
const
dispex_static_data_vtbl_t
CSSStyle_dispex_vtbl
=
{
const
dispex_static_data_vtbl_t
CSSStyle_dispex_vtbl
=
{
NULL
,
CSSStyle_destructor
,
NULL
,
CSSStyle_unlink
,
NULL
,
NULL
,
CSSStyle_get_dispid
,
CSSStyle_get_dispid
,
NULL
,
NULL
,
...
...
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