Commit e4025c50 authored by Mike McCormack's avatar Mike McCormack Committed by Alexandre Julliard

hlink: Only release an object that we successfully created.

parent c307df85
......@@ -444,7 +444,7 @@ static HRESULT WINAPI IHlink_fnNavigate(IHlink* iface, DWORD grfHLNF, LPBC pbc,
if (mon)
{
IBindCtx *bcxt;
IHlinkTarget *target;
IHlinkTarget *target = NULL;
HRESULT r = S_OK;
CreateBindCtx(0, &bcxt);
......@@ -458,12 +458,12 @@ static HRESULT WINAPI IHlink_fnNavigate(IHlink* iface, DWORD grfHLNF, LPBC pbc,
{
IHlinkTarget_SetBrowseContext(target, phbc);
IHlinkTarget_Navigate(target, grfHLNF, This->Location);
IHlinkTarget_Release(target);
}
RevokeBindStatusCallback(bcxt, pbsc);
IBindCtx_Release(bcxt);
IHlinkTarget_Release(target);
IMoniker_Release(mon);
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment