ieframe: Release client site interface before destroying embedding window.

This commit is contained in:
Jacek Caban 2015-07-28 15:18:18 +02:00 committed by Alexandre Julliard
parent d700dbbae7
commit 8c7a907755
1 changed files with 5 additions and 5 deletions

View File

@ -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;