Commit 3950721c authored by André Hentschel's avatar André Hentschel Committed by Alexandre Julliard

mshtml: Only release the interface if it exists.

parent fde979b8
...@@ -268,7 +268,7 @@ static void set_downloading_proc(task_t *_task) ...@@ -268,7 +268,7 @@ static void set_downloading_proc(task_t *_task)
IDropTarget *drop_target = NULL; IDropTarget *drop_target = NULL;
hres = IDocHostUIHandler_GetDropTarget(doc->hostui, NULL /* FIXME */, &drop_target); hres = IDocHostUIHandler_GetDropTarget(doc->hostui, NULL /* FIXME */, &drop_target);
if(SUCCEEDED(hres)) { if(SUCCEEDED(hres) && drop_target) {
FIXME("Use IDropTarget\n"); FIXME("Use IDropTarget\n");
IDropTarget_Release(drop_target); IDropTarget_Release(drop_target);
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment