hlink: Fix leak in HlinkNavigateToStringReference.

This commit is contained in:
Piotr Caban 2011-12-13 15:14:13 +01:00 committed by Alexandre Julliard
parent bf0c37d56a
commit 445db0a54d
1 changed files with 4 additions and 2 deletions

View File

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