Commit 5c939222 authored by Gabriel Ivăncescu's avatar Gabriel Ivăncescu Committed by Alexandre Julliard

mshtml: Release ref from the element when detaching the plugin host.

When the plugin host is created, its only ref is being held by the element it is associated with. Signed-off-by: 's avatarGabriel Ivăncescu <gabrielopcode@gmail.com>
parent 08dc691d
......@@ -2672,14 +2672,15 @@ void detach_plugin_host(PluginHost *host)
release_plugin_ifaces(host);
list_remove(&host->entry);
list_init(&host->entry);
host->doc = NULL;
if(host->element) {
host->element->plugin_host = NULL;
host->element = NULL;
IOleClientSite_Release(&host->IOleClientSite_iface);
}
list_remove(&host->entry);
list_init(&host->entry);
host->doc = NULL;
}
HRESULT create_plugin_host(HTMLDocumentNode *doc, HTMLPluginContainer *container)
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment