static void release_client_site(WebBrowser *This) { release_dochost_client(&This->doc_host); if(This->shell_embedding_hwnd) { DestroyWindow(This->shell_embedding_hwnd); This->shell_embedding_hwnd = NULL; } if(This->inplace) { IOleInPlaceSite_Release(This->inplace); This->inplace = NULL; } if(This->container) { IOleContainer_Release(This->container); This->container = NULL; } if(This->uiwindow) { IOleInPlaceUIWindow_Release(This->uiwindow); This->uiwindow = NULL; } if(This->client) { IOleClientSite_Release(This->client); This->client = NULL; } }
void DocHost_Release(DocHost *This) { release_dochost_client(This); DocHost_ClientSite_Release(This); ConnectionPointContainer_Destroy(&This->cps); heap_free(This->url); }