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>
This commit is contained in:
Michael Stefaniuc 2019-11-08 21:07:10 +01:00 committed by Alexandre Julliard
parent 98e240c6a6
commit a0a5c64bd5

View file

@ -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 */