Module: wine Branch: master Commit: 66f13236fe3d5f4cfa17d48182ebf2d397280b2b URL: http://source.winehq.org/git/wine.git/?a=commit;h=66f13236fe3d5f4cfa17d48182... Author: Michael Stefaniuc <mstefani(a)redhat.de> Date: Fri Jul 8 10:13:13 2016 +0200 ole32: Remove a redundant NULL check before CoTaskMemFree(). Signed-off-by: Michael Stefaniuc <mstefani(a)redhat.de> Signed-off-by: Huw Davies <huw(a)codeweavers.com> Signed-off-by: Alexandre Julliard <julliard(a)winehq.org> --- 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); } /***********************************************************************