From e2a9e493493290b77c04f09750b44b967a05d538 Mon Sep 17 00:00:00 2001 From: Huw D M Davies Date: Fri, 5 Oct 2001 19:37:44 +0000 Subject: [PATCH] Remove some unnecessary AddRef's. --- dlls/oleaut32/typelib.c | 4 ---- 1 file changed, 4 deletions(-) diff --git a/dlls/oleaut32/typelib.c b/dlls/oleaut32/typelib.c index 5e070e37179..a578c9b7ef8 100644 --- a/dlls/oleaut32/typelib.c +++ b/dlls/oleaut32/typelib.c @@ -1833,12 +1833,10 @@ int TLB_ReadTypeLib(LPCWSTR pszFileName, INT index, ITypeLib2 **ppTypeLib) 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 @@ int TLB_ReadTypeLib(LPCWSTR pszFileName, INT index, ITypeLib2 **ppTypeLib) 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 {