hlink: Fix leak in HlinkNavigateToStringReference.
This commit is contained in:
parent
bf0c37d56a
commit
445db0a54d
|
@ -261,14 +261,16 @@ HRESULT WINAPI HlinkNavigateToStringReference( LPCWSTR pwzTarget,
|
|||
HRESULT r;
|
||||
IHlink *hlink = NULL;
|
||||
|
||||
FIXME("%s %s %p %08x %p %08x %p %p %p\n",
|
||||
TRACE("%s %s %p %08x %p %08x %p %p %p\n",
|
||||
debugstr_w(pwzTarget), debugstr_w(pwzLocation), pihlsite,
|
||||
dwSiteData, pihlframe, grfHLNF, pibc, pibsc, pihlbc);
|
||||
|
||||
r = HlinkCreateFromString( pwzTarget, pwzLocation, NULL, pihlsite,
|
||||
dwSiteData, NULL, &IID_IHlink, (LPVOID*) &hlink );
|
||||
if (SUCCEEDED(r))
|
||||
if (SUCCEEDED(r)) {
|
||||
r = HlinkNavigate(hlink, pihlframe, grfHLNF, pibc, pibsc, pihlbc);
|
||||
IHlink_Release(hlink);
|
||||
}
|
||||
|
||||
return r;
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue