ieframe: Release client site interface before destroying embedding window.
This commit is contained in:
parent
d700dbbae7
commit
8c7a907755
|
@ -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;
|
||||
|
|
Loading…
Reference in New Issue