Module: wine Branch: master Commit: 650bd9481f6bf29f9643cfc3b38be211c22bec43 URL: https://source.winehq.org/git/wine.git/?a=commit;h=650bd9481f6bf29f9643cfc3b...
Author: Michael Stefaniuc mstefani@winehq.org Date: Tue Jan 29 20:38:05 2019 +0100
ole32: Remove redundant NULL check before CoTaskMemFree().
Signed-off-by: Michael Stefaniuc mstefani@winehq.org Signed-off-by: Huw Davies huw@codeweavers.com Signed-off-by: Alexandre Julliard julliard@winehq.org
---
dlls/ole32/oleobj.c | 7 ++----- 1 file changed, 2 insertions(+), 5 deletions(-)
diff --git a/dlls/ole32/oleobj.c b/dlls/ole32/oleobj.c index 44e15e5..13a8736 100644 --- a/dlls/ole32/oleobj.c +++ b/dlls/ole32/oleobj.c @@ -41,11 +41,8 @@ WINE_DEFAULT_DEBUG_CHANNEL(ole);
static void release_statdata(STATDATA *data) { - if(data->formatetc.ptd) - { - CoTaskMemFree(data->formatetc.ptd); - data->formatetc.ptd = NULL; - } + CoTaskMemFree(data->formatetc.ptd); + data->formatetc.ptd = NULL;
if(data->pAdvSink) {