Misha Koshelev : urlmon: If we are using an internal protocol ClassFactory, call its AddRef as the caller must Release the object.

Alexandre Julliard julliard at wine.codeweavers.com
Tue Jul 24 07:06:26 CDT 2007


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

Author: Misha Koshelev <mk144210 at bcm.edu>
Date:   Tue Jul 24 00:14:58 2007 -0500

urlmon: If we are using an internal protocol ClassFactory, call its AddRef as the caller must Release the object.

---

 dlls/urlmon/session.c |    1 +
 1 files changed, 1 insertions(+), 0 deletions(-)

diff --git a/dlls/urlmon/session.c b/dlls/urlmon/session.c
index 6e80996..a57a8dc 100644
--- a/dlls/urlmon/session.c
+++ b/dlls/urlmon/session.c
@@ -151,6 +151,7 @@ HRESULT get_protocol_handler(LPCWSTR url, CLSID *clsid, IClassFactory **ret)
     ns = find_name_space(schema);
     if(ns) {
         *ret = ns->cf;
+        IClassFactory_AddRef(*ret);
         if(clsid)
             *clsid = ns->clsid;
         return S_OK;




More information about the wine-cvs mailing list