mshtml: Only release the interface if it exists.

This commit is contained in:
André Hentschel 2012-02-10 19:40:59 +01:00 committed by Alexandre Julliard
parent fde979b8b5
commit 3950721c2d

View file

@ -268,7 +268,7 @@ static void set_downloading_proc(task_t *_task)
IDropTarget *drop_target = NULL;
hres = IDocHostUIHandler_GetDropTarget(doc->hostui, NULL /* FIXME */, &drop_target);
if(SUCCEEDED(hres)) {
if(SUCCEEDED(hres) && drop_target) {
FIXME("Use IDropTarget\n");
IDropTarget_Release(drop_target);
}