Michael Stefaniuc : ole32: Remove redundant NULL check before CoTaskMemFree().
Alexandre Julliard
julliard at winehq.org
Wed Jan 30 17:36:15 CST 2019
Module: wine
Branch: master
Commit: 650bd9481f6bf29f9643cfc3b38be211c22bec43
URL: https://source.winehq.org/git/wine.git/?a=commit;h=650bd9481f6bf29f9643cfc3b38be211c22bec43
Author: Michael Stefaniuc <mstefani at winehq.org>
Date: Tue Jan 29 20:38:05 2019 +0100
ole32: Remove redundant NULL check before CoTaskMemFree().
Signed-off-by: Michael Stefaniuc <mstefani at winehq.org>
Signed-off-by: Huw Davies <huw at codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard at 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)
{
More information about the wine-cvs
mailing list