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
ce02f4d9
Commit
ce02f4d9
authored
Aug 04, 2023
by
Gabriel Ivăncescu
Committed by
Alexandre Julliard
Aug 08, 2023
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
mshtml: Use unlink and destructor in the vtbl for MutationObserver.
Signed-off-by:
Gabriel Ivăncescu
<
gabrielopcode@gmail.com
>
parent
7bf4cd17
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
24 additions
and
5 deletions
+24
-5
mutation.c
dlls/mshtml/mutation.c
+24
-5
No files found.
dlls/mshtml/mutation.c
View file @
ce02f4d9
...
...
@@ -1127,11 +1127,8 @@ static ULONG WINAPI MutationObserver_Release(IWineMSHTMLMutationObserver *iface)
TRACE
(
"(%p) ref=%ld
\n
"
,
This
,
ref
);
if
(
!
ref
)
{
if
(
!
ref
)
release_dispex
(
&
This
->
dispex
);
IDispatch_Release
(
This
->
callback
);
free
(
This
);
}
return
ref
;
}
...
...
@@ -1213,13 +1210,35 @@ static const IWineMSHTMLMutationObserverVtbl WineMSHTMLMutationObserverVtbl = {
MutationObserver_takeRecords
};
static
inline
struct
mutation_observer
*
mutation_observer_from_DispatchEx
(
DispatchEx
*
iface
)
{
return
CONTAINING_RECORD
(
iface
,
struct
mutation_observer
,
dispex
);
}
static
void
mutation_observer_unlink
(
DispatchEx
*
dispex
)
{
struct
mutation_observer
*
This
=
mutation_observer_from_DispatchEx
(
dispex
);
unlink_ref
(
&
This
->
callback
);
}
static
void
mutation_observer_destructor
(
DispatchEx
*
dispex
)
{
struct
mutation_observer
*
This
=
mutation_observer_from_DispatchEx
(
dispex
);
free
(
This
);
}
static
const
dispex_static_data_vtbl_t
mutation_observer_dispex_vtbl
=
{
mutation_observer_destructor
,
mutation_observer_unlink
};
static
const
tid_t
mutation_observer_iface_tids
[]
=
{
IWineMSHTMLMutationObserver_tid
,
0
};
static
dispex_static_data_t
mutation_observer_dispex
=
{
L"MutationObserver"
,
NULL
,
&
mutation_observer_dispex_vtbl
,
IWineMSHTMLMutationObserver_tid
,
mutation_observer_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