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
0afb0b6b
Commit
0afb0b6b
authored
Aug 21, 2023
by
Gabriel Ivăncescu
Committed by
Alexandre Julliard
Aug 21, 2023
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
mshtml: Use destructor in the vtbl for PerformanceTiming.
Signed-off-by:
Gabriel Ivăncescu
<
gabrielopcode@gmail.com
>
parent
c32616c5
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
18 additions
and
2 deletions
+18
-2
omnavigator.c
dlls/mshtml/omnavigator.c
+18
-2
No files found.
dlls/mshtml/omnavigator.c
View file @
0afb0b6b
...
...
@@ -1631,7 +1631,8 @@ static ULONG WINAPI HTMLPerformanceTiming_Release(IHTMLPerformanceTiming *iface)
if
(
!
ref
)
{
if
(
This
->
dispex
.
outer
)
release_dispex
(
&
This
->
dispex
);
free
(
This
);
else
free
(
This
);
}
return
ref
;
...
...
@@ -1956,13 +1957,28 @@ static const IHTMLPerformanceTimingVtbl HTMLPerformanceTimingVtbl = {
HTMLPerformanceTiming_toJSON
};
static
inline
HTMLPerformanceTiming
*
HTMLPerformanceTiming_from_DispatchEx
(
DispatchEx
*
iface
)
{
return
CONTAINING_RECORD
(
iface
,
HTMLPerformanceTiming
,
dispex
);
}
static
void
HTMLPerformanceTiming_destructor
(
DispatchEx
*
dispex
)
{
HTMLPerformanceTiming
*
This
=
HTMLPerformanceTiming_from_DispatchEx
(
dispex
);
free
(
This
);
}
static
const
dispex_static_data_vtbl_t
HTMLPerformanceTiming_dispex_vtbl
=
{
.
destructor
=
HTMLPerformanceTiming_destructor
,
};
static
const
tid_t
HTMLPerformanceTiming_iface_tids
[]
=
{
IHTMLPerformanceTiming_tid
,
0
};
static
dispex_static_data_t
HTMLPerformanceTiming_dispex
=
{
"PerformanceTiming"
,
NULL
,
&
HTMLPerformanceTiming_dispex_vtbl
,
IHTMLPerformanceTiming_tid
,
HTMLPerformanceTiming_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