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

This commit is contained in:
Marcus Meissner 2009-09-20 18:43:24 +02:00 committed by Alexandre Julliard
parent 62a75bfc3e
commit c997a51869
1 changed files with 1 additions and 1 deletions

View File

@ -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;
}