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
ef9bb151
Commit
ef9bb151
authored
Apr 19, 2011
by
Jacek Caban
Committed by
Alexandre Julliard
Apr 19, 2011
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
shdocvw: Properly handle IEDocHost refcount.
parent
d429aaa9
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
5 additions
and
2 deletions
+5
-2
ie.c
dlls/shdocvw/ie.c
+3
-1
iexplore.c
dlls/shdocvw/iexplore.c
+2
-1
No files found.
dlls/shdocvw/ie.c
View file @
ef9bb151
...
...
@@ -81,8 +81,10 @@ static ULONG WINAPI InternetExplorer_Release(IWebBrowser2 *iface)
if
(
!
ref
)
{
if
(
This
->
doc_host
)
{
DocHost_Release
(
&
This
->
doc_host
->
doc_host
);
if
(
This
->
doc_host
)
if
(
This
->
doc_host
)
{
This
->
doc_host
->
ie
=
NULL
;
This
->
doc_host
->
doc_host
.
container_vtbl
->
release
(
&
This
->
doc_host
->
doc_host
);
}
}
if
(
This
->
frame_hwnd
)
...
...
dlls/shdocvw/iexplore.c
View file @
ef9bb151
...
...
@@ -718,7 +718,7 @@ static ULONG IEDocHost_release(DocHost *iface)
if
(
!
ref
)
{
if
(
This
->
ie
)
This
->
ie
->
doc_host
=
NULL
;
ERR
(
"This->ie is not NULL
\n
"
)
;
heap_free
(
This
);
}
...
...
@@ -777,6 +777,7 @@ static HRESULT create_ie(InternetExplorer **ret_obj)
}
ret
->
ref
=
1
;
ret
->
doc_host
->
ref
=
1
;
ret
->
doc_host
->
ie
=
ret
;
DocHost_Init
(
&
ret
->
doc_host
->
doc_host
,
(
IDispatch
*
)
&
ret
->
IWebBrowser2_iface
,
&
DocHostContainerVtbl
);
...
...
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