Commit 8c7a9077 authored by Jacek Caban's avatar Jacek Caban Committed by Alexandre Julliard

ieframe: Release client site interface before destroying embedding window.

parent d700dbba
......@@ -264,6 +264,11 @@ static void release_client_site(WebBrowser *This)
{
release_dochost_client(&This->doc_host);
if(This->client) {
IOleClientSite_Release(This->client);
This->client = NULL;
}
if(This->shell_embedding_hwnd) {
DestroyWindow(This->shell_embedding_hwnd);
This->shell_embedding_hwnd = NULL;
......@@ -284,11 +289,6 @@ static void release_client_site(WebBrowser *This)
This->uiwindow = NULL;
}
if(This->client) {
IOleClientSite_Release(This->client);
This->client = NULL;
}
if(This->sink) {
IAdviseSink_Release(This->sink);
This->sink = NULL;
......
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