Rob Shearman : ole32: Fix reference count leak in BindMoniker.
Module: wine Branch: master Commit: 14f7a59270579d57244e7ce3527f157233f0bc3b URL: http://source.winehq.org/git/wine.git/?a=commit;h=14f7a59270579d57244e7ce352... Author: Rob Shearman <rob(a)codeweavers.com> Date: Wed Feb 13 12:34:44 2008 +0000 ole32: Fix reference count leak in BindMoniker. --- dlls/ole32/bindctx.c | 3 +++ 1 files changed, 3 insertions(+), 0 deletions(-) diff --git a/dlls/ole32/bindctx.c b/dlls/ole32/bindctx.c index e0f297e..5c348cb 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; }
participants (1)
-
Alexandre Julliard