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
cfe112d7
Commit
cfe112d7
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 HTMLStyleSheetsCollection.
Signed-off-by:
Gabriel Ivăncescu
<
gabrielopcode@gmail.com
>
parent
2e188c96
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 @
cfe112d7
...
...
@@ -703,12 +703,8 @@ static ULONG WINAPI HTMLStyleSheetsCollection_Release(IHTMLStyleSheetsCollection
TRACE
(
"(%p) ref=%ld
\n
"
,
This
,
ref
);
if
(
!
ref
)
{
if
(
!
ref
)
release_dispex
(
&
This
->
dispex
);
if
(
This
->
nslist
)
nsIDOMStyleSheetList_Release
(
This
->
nslist
);
free
(
This
);
}
return
ref
;
}
...
...
@@ -844,6 +840,18 @@ static inline HTMLStyleSheetsCollection *HTMLStyleSheetsCollection_from_Dispatch
return
CONTAINING_RECORD
(
iface
,
HTMLStyleSheetsCollection
,
dispex
);
}
static
void
HTMLStyleSheetsCollection_unlink
(
DispatchEx
*
dispex
)
{
HTMLStyleSheetsCollection
*
This
=
HTMLStyleSheetsCollection_from_DispatchEx
(
dispex
);
unlink_ref
(
&
This
->
nslist
);
}
static
void
HTMLStyleSheetsCollection_destructor
(
DispatchEx
*
dispex
)
{
HTMLStyleSheetsCollection
*
This
=
HTMLStyleSheetsCollection_from_DispatchEx
(
dispex
);
free
(
This
);
}
static
HRESULT
HTMLStyleSheetsCollection_get_dispid
(
DispatchEx
*
dispex
,
BSTR
name
,
DWORD
flags
,
DISPID
*
dispid
)
{
HTMLStyleSheetsCollection
*
This
=
HTMLStyleSheetsCollection_from_DispatchEx
(
dispex
);
...
...
@@ -921,8 +929,8 @@ static HRESULT HTMLStyleSheetsCollection_invoke(DispatchEx *dispex, DISPID id, L
}
static
const
dispex_static_data_vtbl_t
HTMLStyleSheetsCollection_dispex_vtbl
=
{
NULL
,
NULL
,
HTMLStyleSheetsCollection_destructor
,
HTMLStyleSheetsCollection_unlink
,
NULL
,
HTMLStyleSheetsCollection_get_dispid
,
HTMLStyleSheetsCollection_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