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
1904dd0b
Commit
1904dd0b
authored
Aug 03, 2023
by
Gabriel Ivăncescu
Committed by
Alexandre Julliard
Aug 04, 2023
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
mshtml: Use unlink and destructor in the vtbl for HTMLTxtRange.
Signed-off-by:
Gabriel Ivăncescu
<
gabrielopcode@gmail.com
>
parent
5c3f4e4b
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
28 additions
and
8 deletions
+28
-8
range.c
dlls/mshtml/range.c
+28
-8
No files found.
dlls/mshtml/range.c
View file @
1904dd0b
...
...
@@ -855,14 +855,8 @@ static ULONG WINAPI HTMLTxtRange_Release(IHTMLTxtRange *iface)
TRACE
(
"(%p) ref=%ld
\n
"
,
This
,
ref
);
if
(
!
ref
)
{
if
(
This
->
nsrange
)
nsIDOMRange_Release
(
This
->
nsrange
);
if
(
This
->
doc
)
list_remove
(
&
This
->
entry
);
if
(
!
ref
)
release_dispex
(
&
This
->
dispex
);
free
(
This
);
}
return
ref
;
}
...
...
@@ -1718,13 +1712,39 @@ static const IOleCommandTargetVtbl OleCommandTargetVtbl = {
RangeCommandTarget_Exec
};
static
inline
HTMLTxtRange
*
HTMLTxtRange_from_DispatchEx
(
DispatchEx
*
iface
)
{
return
CONTAINING_RECORD
(
iface
,
HTMLTxtRange
,
dispex
);
}
static
void
HTMLTxtRange_unlink
(
DispatchEx
*
dispex
)
{
HTMLTxtRange
*
This
=
HTMLTxtRange_from_DispatchEx
(
dispex
);
unlink_ref
(
&
This
->
nsrange
);
if
(
This
->
doc
)
{
This
->
doc
=
NULL
;
list_remove
(
&
This
->
entry
);
}
}
static
void
HTMLTxtRange_destructor
(
DispatchEx
*
dispex
)
{
HTMLTxtRange
*
This
=
HTMLTxtRange_from_DispatchEx
(
dispex
);
free
(
This
);
}
static
const
dispex_static_data_vtbl_t
HTMLTxtRange_dispex_vtbl
=
{
HTMLTxtRange_destructor
,
HTMLTxtRange_unlink
};
static
const
tid_t
HTMLTxtRange_iface_tids
[]
=
{
IHTMLTxtRange_tid
,
0
};
static
dispex_static_data_t
HTMLTxtRange_dispex
=
{
L"TextRange"
,
NULL
,
&
HTMLTxtRange_dispex_vtbl
,
IHTMLTxtRange_tid
,
HTMLTxtRange_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