Rob Shearman : ole32: Fix reference count leak in BindMoniker.

Alexandre Julliard julliard at winehq.org
Wed Feb 13 10:40:08 CST 2008


Module: wine
Branch: master
Commit: 14f7a59270579d57244e7ce3527f157233f0bc3b
URL:    http://source.winehq.org/git/wine.git/?a=commit;h=14f7a59270579d57244e7ce3527f157233f0bc3b

Author: Rob Shearman <rob at 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;
 }




More information about the wine-cvs mailing list