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
a124117f
Commit
a124117f
authored
Mar 21, 2019
by
Jacek Caban
Committed by
Alexandre Julliard
Mar 21, 2019
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
mshtml: Remove selection and range objects from document list when detaching.
Signed-off-by:
Jacek Caban
<
jacek@codeweavers.com
>
Signed-off-by:
Alexandre Julliard
<
julliard@winehq.org
>
parent
18e0225a
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
6 additions
and
4 deletions
+6
-4
selection.c
dlls/mshtml/selection.c
+3
-2
txtrange.c
dlls/mshtml/txtrange.c
+3
-2
No files found.
dlls/mshtml/selection.c
View file @
a124117f
...
...
@@ -364,9 +364,10 @@ HRESULT HTMLSelectionObject_Create(HTMLDocumentNode *doc, nsISelection *nsselect
void
detach_selection
(
HTMLDocumentNode
*
This
)
{
HTMLSelectionObject
*
iter
;
HTMLSelectionObject
*
iter
,
*
next
;
LIST_FOR_EACH_ENTRY
(
iter
,
&
This
->
selection_list
,
HTMLSelectionObject
,
entry
)
{
LIST_FOR_EACH_ENTRY
_SAFE
(
iter
,
next
,
&
This
->
selection_list
,
HTMLSelectionObject
,
entry
)
{
iter
->
doc
=
NULL
;
list_remove
(
&
iter
->
entry
);
}
}
dlls/mshtml/txtrange.c
View file @
a124117f
...
...
@@ -1760,9 +1760,10 @@ HRESULT HTMLTxtRange_Create(HTMLDocumentNode *doc, nsIDOMRange *nsrange, IHTMLTx
void
detach_ranges
(
HTMLDocumentNode
*
This
)
{
HTMLTxtRange
*
iter
;
HTMLTxtRange
*
iter
,
*
next
;
LIST_FOR_EACH_ENTRY
(
iter
,
&
This
->
range_list
,
HTMLTxtRange
,
entry
)
{
LIST_FOR_EACH_ENTRY
_SAFE
(
iter
,
next
,
&
This
->
range_list
,
HTMLTxtRange
,
entry
)
{
iter
->
doc
=
NULL
;
list_remove
(
&
iter
->
entry
);
}
}
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