From 414ddfa671d586fbc4f00f63d7c99f0079cd9048 Mon Sep 17 00:00:00 2001 From: Misha Koshelev Date: Tue, 24 Jul 2007 00:14:58 -0500 Subject: [PATCH] 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 file changed, 1 insertion(+) diff --git a/dlls/urlmon/session.c b/dlls/urlmon/session.c index 6e809968054..a57a8dce82e 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;