Another day, another typelib patch

Huw D M Davies h.davies1 at physics.ox.ac.uk
Fri Oct 5 09:06:22 CDT 2001


	Huw D M Davies <hdavies at codeweavers.com>
	Remove some unnecessary AddRef's.
-------------- next part --------------
Index: dlls/oleaut32/typelib.c
===================================================================
RCS file: /home/wine/wine/dlls/oleaut32/typelib.c,v
retrieving revision 1.52
diff -u -r1.52 typelib.c
--- dlls/oleaut32/typelib.c	2001/10/04 18:11:11	1.52
+++ dlls/oleaut32/typelib.c	2001/10/05 12:47:02
@@ -1833,12 +1833,10 @@
           if ( dwSignature == MSFT_SIGNATURE)
           {
             *ppTypeLib = ITypeLib2_Constructor_MSFT(pBase, dwTLBLength);
-            ITypeLib2_AddRef(*ppTypeLib);
           }
 	  else if ( dwSignature == SLTG_SIGNATURE)
           {
             *ppTypeLib = ITypeLib2_Constructor_SLTG(pBase, dwTLBLength);
-            ITypeLib2_AddRef(*ppTypeLib);
 	  }
           UnmapViewOfFile(pBase);
         }
@@ -1871,12 +1869,10 @@
               if ( dwSignature == MSFT_SIGNATURE)
               {
                   *ppTypeLib = ITypeLib2_Constructor_MSFT(pBase, dwTLBLength);
-                  ITypeLib2_AddRef(*ppTypeLib);
 	      }
 	      else if ( dwSignature == SLTG_SIGNATURE)
 	      {
                   *ppTypeLib = ITypeLib2_Constructor_SLTG(pBase, dwTLBLength);
-                  ITypeLib2_AddRef(*ppTypeLib);
 	      }
               else
               {


More information about the wine-patches mailing list