[PATCH] ole32: Remove redundant NULL check before CoTaskMemFree()
Michael Stefaniuc
mstefani at winehq.org
Tue Jan 29 13:38:05 CST 2019
Signed-off-by: Michael Stefaniuc <mstefani 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 44e15e551f..13a873655f 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)
{
--
2.20.1
More information about the wine-devel
mailing list