From 14f7a59270579d57244e7ce3527f157233f0bc3b Mon Sep 17 00:00:00 2001 From: Rob Shearman Date: Wed, 13 Feb 2008 12:34:44 +0000 Subject: [PATCH] ole32: Fix reference count leak in BindMoniker. --- dlls/ole32/bindctx.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/dlls/ole32/bindctx.c b/dlls/ole32/bindctx.c index e0f297e56ef..5c348cbbeb2 100644 --- a/dlls/ole32/bindctx.c +++ b/dlls/ole32/bindctx.c @@ -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; }