Michael Stefaniuc : oleaut32: Remove superfluous NULL check before HeapFree (Smatch).
Alexandre Julliard
julliard at winehq.org
Wed Mar 17 12:19:05 CDT 2010
Module: wine
Branch: master
Commit: c71b82f3c1d872b96c2f53c78d9a89a7e9902dfc
URL: http://source.winehq.org/git/wine.git/?a=commit;h=c71b82f3c1d872b96c2f53c78d9a89a7e9902dfc
Author: Michael Stefaniuc <mstefani at redhat.de>
Date: Tue Mar 16 23:05:39 2010 +0100
oleaut32: Remove superfluous NULL check before HeapFree (Smatch).
---
dlls/oleaut32/typelib2.c | 4 +---
1 files changed, 1 insertions(+), 3 deletions(-)
diff --git a/dlls/oleaut32/typelib2.c b/dlls/oleaut32/typelib2.c
index a275845..ec3ec1c 100644
--- a/dlls/oleaut32/typelib2.c
+++ b/dlls/oleaut32/typelib2.c
@@ -3854,9 +3854,7 @@ static ULONG WINAPI ICreateTypeLib2_fnRelease(ICreateTypeLib2 *iface)
}
}
- if(typeinfo->dual)
- HeapFree(GetProcessHeap(), 0, typeinfo->dual);
-
+ HeapFree(GetProcessHeap(), 0, typeinfo->dual);
HeapFree(GetProcessHeap(), 0, typeinfo);
}
More information about the wine-cvs
mailing list