Michael Stefaniuc : d3dx9: Remove redundant NULL check before heap_free().

Alexandre Julliard julliard at winehq.org
Wed Nov 13 16:01:12 CST 2019


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

Author: Michael Stefaniuc <mstefani at winehq.org>
Date:   Fri Nov  8 21:07:10 2019 +0100

d3dx9: Remove redundant NULL check before heap_free().

Signed-off-by: Michael Stefaniuc <mstefani at winehq.org>
Signed-off-by: Matteo Bruni <mbruni at codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard at winehq.org>

---

 dlls/d3dx9_36/effect.c | 4 +---
 1 file changed, 1 insertion(+), 3 deletions(-)

diff --git a/dlls/d3dx9_36/effect.c b/dlls/d3dx9_36/effect.c
index e69a1fd1f8..ad81cb68cb 100644
--- a/dlls/d3dx9_36/effect.c
+++ b/dlls/d3dx9_36/effect.c
@@ -580,9 +580,7 @@ static void free_parameter(struct d3dx_parameter *param, BOOL element, BOOL chil
         HeapFree(GetProcessHeap(), 0, param->members);
     }
 
-    if (param->full_name)
-        heap_free(param->full_name);
-
+    heap_free(param->full_name);
     free_parameter_data(param, child);
 
     /* only the parent has to release name and semantic */




More information about the wine-cvs mailing list