Commit c997a518 authored by Marcus Meissner's avatar Marcus Meissner Committed by Alexandre Julliard

mshmtl: Check nsrange before calling ->Release (coverity).

parent 62a75bfc
......@@ -182,7 +182,7 @@ static HRESULT WINAPI HTMLSelectionObject_createRange(IHTMLSelectionObject *ifac
hres = HTMLTxtRange_Create(This->doc, nsrange, &range_obj);
nsIDOMRange_Release(nsrange);
if (nsrange) nsIDOMRange_Release(nsrange);
*range = (IDispatch*)range_obj;
return hres;
}
......
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