mshtml: Remove redundant NULL check before HeapFree (Smatch).

This commit is contained in:
Michael Stefaniuc 2009-10-19 22:55:03 +02:00 committed by Alexandre Julliard
parent 94d33d3e86
commit 975a93de68
1 changed files with 2 additions and 4 deletions

View File

@ -256,10 +256,8 @@ static HRESULT WINAPI HTMLLocation_get_href(IHTMLLocation *iface, BSTR *p)
ret = S_OK;
cleanup:
if(buf)
HeapFree(GetProcessHeap(), 0, buf);
if(url_path)
HeapFree(GetProcessHeap(), 0, url_path);
HeapFree(GetProcessHeap(), 0, buf);
HeapFree(GetProcessHeap(), 0, url_path);
return ret;
}