ole32: Remove a redundant NULL check before CoTaskMemFree()

Michael Stefaniuc mstefani at redhat.de
Fri Jul 8 03:13:13 CDT 2016


Signed-off-by: Michael Stefaniuc <mstefani at redhat.de>
---
 dlls/ole32/ole2.c | 3 +--
 1 file changed, 1 insertion(+), 2 deletions(-)

diff --git a/dlls/ole32/ole2.c b/dlls/ole32/ole2.c
index 9cffb63..c7a9b27 100644
--- a/dlls/ole32/ole2.c
+++ b/dlls/ole32/ole2.c
@@ -2713,8 +2713,7 @@ static void OLE_FreeClipDataArray(ULONG count, CLIPDATA * pClipDataArray)
 {
     ULONG i;
     for (i = 0; i < count; i++)
-        if (pClipDataArray[i].pClipData)
-            CoTaskMemFree(pClipDataArray[i].pClipData);
+        CoTaskMemFree(pClipDataArray[i].pClipData);
 }
 
 /***********************************************************************
-- 
2.5.5



More information about the wine-patches mailing list