shdocvw: Cope with being called without an active document.

This commit is contained in:
Huw Davies 2011-05-11 19:18:54 +01:00 committed by Alexandre Julliard
parent 2b2c5f35ac
commit 0f9ba2b71c
1 changed files with 2 additions and 0 deletions

View File

@ -326,6 +326,8 @@ void deactivate_document(DocHost *This)
IHlinkTarget *hlink = NULL;
HRESULT hres;
if(!This->document) return;
if(This->doc_navigate) {
IUnknown_Release(This->doc_navigate);
This->doc_navigate = NULL;