Nikolay Sivov : hnetcfg: Fix refcount of returned ITypeInfo pointer.

Alexandre Julliard julliard at wine.codeweavers.com
Wed Jan 14 14:35:42 CST 2015


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

Author: Nikolay Sivov <nsivov at codeweavers.com>
Date:   Wed Jan 14 08:29:37 2015 +0300

hnetcfg: Fix refcount of returned ITypeInfo pointer.

---

 dlls/hnetcfg/apps.c | 1 +
 1 file changed, 1 insertion(+)

diff --git a/dlls/hnetcfg/apps.c b/dlls/hnetcfg/apps.c
index 18031a3..a0530e1 100644
--- a/dlls/hnetcfg/apps.c
+++ b/dlls/hnetcfg/apps.c
@@ -144,6 +144,7 @@ HRESULT get_typeinfo( enum type_id tid, ITypeInfo **ret )
             ITypeInfo_Release( info );
     }
     *ret = typeinfo[tid];
+    ITypeInfo_AddRef(typeinfo[tid]);
     return S_OK;
 }
 




More information about the wine-cvs mailing list