ole32: Fix reference count leak in BindMoniker.

This commit is contained in:
Rob Shearman 2008-02-13 12:34:44 +00:00 committed by Alexandre Julliard
parent 9f3c91e41f
commit 14f7a59270
1 changed files with 3 additions and 0 deletions

View File

@ -611,6 +611,9 @@ HRESULT WINAPI BindMoniker(LPMONIKER pmk, DWORD grfOpt, REFIID riid, LPVOID * pp
res = CreateBindCtx(grfOpt, &pbc);
if (SUCCEEDED(res))
{
res = IMoniker_BindToObject(pmk, pbc, NULL, riid, ppvResult);
IBindCtx_Release(pbc);
}
return res;
}