Module: wine Branch: master Commit: a0a5c64bd5d4240d8a7a9913c77730458262d450 URL: https://source.winehq.org/git/wine.git/?a=commit;h=a0a5c64bd5d4240d8a7a9913c...
Author: Michael Stefaniuc mstefani@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@winehq.org Signed-off-by: Matteo Bruni mbruni@codeweavers.com Signed-off-by: Alexandre Julliard julliard@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 */