oleaut32: Remove superfluous NULL check before HeapFree (Smatch).

Michael Stefaniuc mstefani at redhat.de
Sun Feb 28 14:48:09 CST 2010


---
 dlls/oleaut32/typelib2.c |    3 +--
 1 files changed, 1 insertions(+), 2 deletions(-)

diff --git a/dlls/oleaut32/typelib2.c b/dlls/oleaut32/typelib2.c
index de84e4a..4544317 100644
--- a/dlls/oleaut32/typelib2.c
+++ b/dlls/oleaut32/typelib2.c
@@ -3141,8 +3141,7 @@ static void WINAPI ITypeInfo2_fnReleaseTypeAttr(
 {
     TRACE("(%p,%p)\n", iface, pTypeAttr);
 
-    if(pTypeAttr)
-        HeapFree(GetProcessHeap(), 0, pTypeAttr);
+    HeapFree(GetProcessHeap(), 0, pTypeAttr);
 }
 
 /******************************************************************************
-- 
1.7.0



More information about the wine-patches mailing list