mshmtl: Check nsrange before calling ->Release (coverity).
This commit is contained in:
parent
62a75bfc3e
commit
c997a51869
|
@ -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;
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue