Michael Stefaniuc : qedit: Drop redundant NULL check before free().

Alexandre Julliard julliard at winehq.org
Thu Sep 24 15:49:04 CDT 2020


Module: wine
Branch: master
Commit: ad20f4831d4d40c719b142ec1869bc9bd9683829
URL:    https://source.winehq.org/git/wine.git/?a=commit;h=ad20f4831d4d40c719b142ec1869bc9bd9683829

Author: Michael Stefaniuc <mstefani at winehq.org>
Date:   Mon Sep 21 22:52:33 2020 +0200

qedit: Drop redundant NULL check before free().

Signed-off-by: Michael Stefaniuc <mstefani at winehq.org>
Signed-off-by: Zebediah Figura <z.figura12 at gmail.com>
Signed-off-by: Alexandre Julliard <julliard at winehq.org>

---

 dlls/qedit/mediadet.c | 3 +--
 1 file changed, 1 insertion(+), 2 deletions(-)

diff --git a/dlls/qedit/mediadet.c b/dlls/qedit/mediadet.c
index e1defaa9a6..bacf5208a0 100644
--- a/dlls/qedit/mediadet.c
+++ b/dlls/qedit/mediadet.c
@@ -66,8 +66,7 @@ static void MD_cleanup(MediaDetImpl *This)
     This->splitter = NULL;
     if (This->graph) IGraphBuilder_Release(This->graph);
     This->graph = NULL;
-    if (This->filename)
-        free(This->filename);
+    free(This->filename);
     This->filename = NULL;
     This->num_streams = -1;
     This->cur_stream = 0;




More information about the wine-cvs mailing list