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
2e188c96
Commit
2e188c96
authored
1 year ago
by
Gabriel Ivăncescu
Committed by
Alexandre Julliard
1 year ago
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
mshtml: Use unlink and destructor in the vtbl for HTMLStyleSheetRulesCollection.
Signed-off-by:
Gabriel Ivăncescu
<
gabrielopcode@gmail.com
>
parent
6d63a630
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
15 additions
and
7 deletions
+15
-7
htmlstylesheet.c
dlls/mshtml/htmlstylesheet.c
+15
-7
No files found.
dlls/mshtml/htmlstylesheet.c
View file @
2e188c96
...
...
@@ -308,12 +308,8 @@ static ULONG WINAPI HTMLStyleSheetRulesCollection_Release(IHTMLStyleSheetRulesCo
TRACE
(
"(%p) ref=%ld
\n
"
,
This
,
ref
);
if
(
!
ref
)
{
if
(
!
ref
)
release_dispex
(
&
This
->
dispex
);
if
(
This
->
nslist
)
nsIDOMCSSRuleList_Release
(
This
->
nslist
);
free
(
This
);
}
return
ref
;
}
...
...
@@ -407,6 +403,18 @@ static inline HTMLStyleSheetRulesCollection *HTMLStyleSheetRulesCollection_from_
return
CONTAINING_RECORD
(
iface
,
HTMLStyleSheetRulesCollection
,
dispex
);
}
static
void
HTMLStyleSheetRulesCollection_unlink
(
DispatchEx
*
dispex
)
{
HTMLStyleSheetRulesCollection
*
This
=
HTMLStyleSheetRulesCollection_from_DispatchEx
(
dispex
);
unlink_ref
(
&
This
->
nslist
);
}
static
void
HTMLStyleSheetRulesCollection_destructor
(
DispatchEx
*
dispex
)
{
HTMLStyleSheetRulesCollection
*
This
=
HTMLStyleSheetRulesCollection_from_DispatchEx
(
dispex
);
free
(
This
);
}
static
HRESULT
HTMLStyleSheetRulesCollection_get_dispid
(
DispatchEx
*
dispex
,
BSTR
name
,
DWORD
flags
,
DISPID
*
dispid
)
{
HTMLStyleSheetRulesCollection
*
This
=
HTMLStyleSheetRulesCollection_from_DispatchEx
(
dispex
);
...
...
@@ -484,8 +492,8 @@ static HRESULT HTMLStyleSheetRulesCollection_invoke(DispatchEx *dispex, DISPID i
}
static
const
dispex_static_data_vtbl_t
HTMLStyleSheetRulesCollection_dispex_vtbl
=
{
NULL
,
NULL
,
HTMLStyleSheetRulesCollection_destructor
,
HTMLStyleSheetRulesCollection_unlink
,
NULL
,
HTMLStyleSheetRulesCollection_get_dispid
,
HTMLStyleSheetRulesCollection_get_name
,
...
...
This diff is collapsed.
Click to expand it.
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