d3dx9: Release the full parameter name when a parameter is released (Valgrind).

Signed-off-by: Sven Baars <sven.wine@gmail.com>
Signed-off-by: Matteo Bruni <mbruni@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
This commit is contained in:
Sven Baars 2019-05-25 13:59:49 +02:00 committed by Alexandre Julliard
parent cb837a5504
commit 63443f249f
1 changed files with 3 additions and 0 deletions

View File

@ -581,6 +581,9 @@ static void free_parameter(struct d3dx_parameter *param, BOOL element, BOOL chil
HeapFree(GetProcessHeap(), 0, param->members); HeapFree(GetProcessHeap(), 0, param->members);
} }
if (param->full_name)
heap_free(param->full_name);
free_parameter_data(param, child); free_parameter_data(param, child);
/* only the parent has to release name and semantic */ /* only the parent has to release name and semantic */