Alexander Dorofeyev : quartz: Fix interface leak in EnumMonikerImpl_Release .

Alexandre Julliard julliard at winehq.org
Wed Jul 2 06:03:40 CDT 2008


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

Author: Alexander Dorofeyev <alexd4 at inbox.lv>
Date:   Wed Jul  2 00:58:48 2008 +0300

quartz: Fix interface leak in EnumMonikerImpl_Release.

---

 dlls/quartz/enummoniker.c |    5 +++++
 1 files changed, 5 insertions(+), 0 deletions(-)

diff --git a/dlls/quartz/enummoniker.c b/dlls/quartz/enummoniker.c
index 86b4bb4..42ea361 100644
--- a/dlls/quartz/enummoniker.c
+++ b/dlls/quartz/enummoniker.c
@@ -123,6 +123,11 @@ static ULONG WINAPI EnumMonikerImpl_Release(LPENUMMONIKER iface)
 
     if (!ref)
     {
+        ULONG i;
+
+        for (i = 0; i < This->nMonikerCount; i++)
+            IMoniker_Release(This->ppMoniker[i]);
+
         CoTaskMemFree(This->ppMoniker);
         This->ppMoniker = NULL;
         CoTaskMemFree(This);




More information about the wine-cvs mailing list