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
e2d04d3d
Commit
e2d04d3d
authored
Jan 21, 2014
by
Jacek Caban
Committed by
Alexandre Julliard
Jan 27, 2014
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
mshtml: Release ActiveX object interfaces in detach_plugin_host.
parent
e7c9e32d
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
26 additions
and
6 deletions
+26
-6
pluginhost.c
dlls/mshtml/pluginhost.c
+26
-6
No files found.
dlls/mshtml/pluginhost.c
View file @
e2d04d3d
...
...
@@ -893,6 +893,29 @@ static ULONG WINAPI PHClientSite_AddRef(IOleClientSite *iface)
return
ref
;
}
static
void
release_plugin_ifaces
(
PluginHost
*
This
)
{
if
(
This
->
disp
)
{
IDispatch_Release
(
This
->
disp
);
This
->
disp
=
NULL
;
}
if
(
This
->
ip_object
)
{
IOleInPlaceObject_Release
(
This
->
ip_object
);
This
->
ip_object
=
NULL
;
}
if
(
This
->
plugin_unk
)
{
IUnknown
*
unk
=
This
->
plugin_unk
;
LONG
ref
;
This
->
plugin_unk
=
NULL
;
ref
=
IUnknown_Release
(
unk
);
TRACE
(
"plugin ref = %d
\n
"
,
ref
);
}
}
static
ULONG
WINAPI
PHClientSite_Release
(
IOleClientSite
*
iface
)
{
PluginHost
*
This
=
impl_from_IOleClientSite
(
iface
);
...
...
@@ -901,10 +924,7 @@ static ULONG WINAPI PHClientSite_Release(IOleClientSite *iface)
TRACE
(
"(%p) ref=%d
\n
"
,
This
,
ref
);
if
(
!
ref
)
{
if
(
This
->
disp
)
IDispatch_Release
(
This
->
disp
);
if
(
This
->
ip_object
)
IOleInPlaceObject_Release
(
This
->
ip_object
);
release_plugin_ifaces
(
This
);
if
(
This
->
sink
)
{
This
->
sink
->
host
=
NULL
;
IDispatch_Release
(
&
This
->
sink
->
IDispatch_iface
);
...
...
@@ -913,8 +933,6 @@ static ULONG WINAPI PHClientSite_Release(IOleClientSite *iface)
list_remove
(
&
This
->
entry
);
if
(
This
->
element
)
This
->
element
->
plugin_host
=
NULL
;
if
(
This
->
plugin_unk
)
IUnknown_Release
(
This
->
plugin_unk
);
heap_free
(
This
);
}
...
...
@@ -1687,6 +1705,8 @@ void detach_plugin_host(PluginHost *host)
host
->
sink
=
NULL
;
}
release_plugin_ifaces
(
host
);
if
(
host
->
element
)
{
host
->
element
->
plugin_host
=
NULL
;
host
->
element
=
NULL
;
...
...
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