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
f937b89c
Commit
f937b89c
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 the MutationObserver constructor.
Signed-off-by:
Gabriel Ivăncescu
<
gabrielopcode@gmail.com
>
parent
2e5ac78a
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
10 additions
and
4 deletions
+10
-4
mutation.c
dlls/mshtml/mutation.c
+10
-4
No files found.
dlls/mshtml/mutation.c
View file @
f937b89c
...
...
@@ -1303,10 +1303,8 @@ static ULONG WINAPI mutation_observer_ctor_Release(IUnknown *iface)
TRACE
(
"(%p) ref=%ld
\n
"
,
This
,
ref
);
if
(
!
ref
)
{
if
(
!
ref
)
release_dispex
(
&
This
->
dispex
);
free
(
This
);
}
return
ref
;
}
...
...
@@ -1317,6 +1315,12 @@ static const IUnknownVtbl mutation_observer_ctor_vtbl = {
mutation_observer_ctor_Release
,
};
static
void
mutation_observer_ctor_destructor
(
DispatchEx
*
dispex
)
{
struct
mutation_observer_ctor
*
This
=
mutation_observer_ctor_from_DispatchEx
(
dispex
);
free
(
This
);
}
static
HRESULT
mutation_observer_ctor_value
(
DispatchEx
*
dispex
,
LCID
lcid
,
WORD
flags
,
DISPPARAMS
*
params
,
VARIANT
*
res
,
EXCEPINFO
*
ei
,
IServiceProvider
*
caller
)
...
...
@@ -1365,7 +1369,9 @@ static HRESULT mutation_observer_ctor_value(DispatchEx *dispex, LCID lcid,
}
static
dispex_static_data_vtbl_t
mutation_observer_ctor_dispex_vtbl
=
{
.
value
=
mutation_observer_ctor_value
mutation_observer_ctor_destructor
,
NULL
,
mutation_observer_ctor_value
};
static
const
tid_t
mutation_observer_ctor_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