IMediaCatMoniker (Devenum) not releasing handle on object

Maarten Lankhorst m.b.lankhorst at gmail.com
Mon Apr 25 10:31:30 CDT 2005


Reference leak, native devenum doesn't have this.. adding 1 line fixes it

Index: mediacatenum.c
===================================================================
RCS file: /home/wine/wine/dlls/devenum/mediacatenum.c,v
retrieving revision 1.14
diff -u -p -r1.14 mediacatenum.c
--- mediacatenum.c      10 Jan 2005 12:25:29 -0000      1.14
+++ mediacatenum.c      25 Apr 2005 15:26:30 -0000
@@ -434,6 +434,8 @@ static HRESULT WINAPI DEVENUM_IMediaCatM
         res= IUnknown_QueryInterface(pObj,riidResult,ppvResult);
     }
 
+    if (pmkToLeft == NULL && pObj != NULL) IUnknown_Release(pObj);
+
     if (pProp)
     {
         IPropertyBag_Release(pProp);




More information about the wine-patches mailing list