[WINESYNC] 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>

wine commit id 63443f249f4dfe748ce3872e74ecf5c1d8aa55d9 by Sven Baars <sven.wine@gmail.com>
This commit is contained in:
winesync 2020-09-21 22:51:59 +02:00 committed by Jérôme Gardou
parent e4ffc986e5
commit c2b534f4fd
2 changed files with 4 additions and 1 deletions

View File

@ -585,6 +585,9 @@ 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);
free_parameter_data(param, child);
/* only the parent has to release name and semantic */

View File

@ -15,4 +15,4 @@ files: {include/d3dx9.h: sdk/include/dxsdk/d3dx9.h, include/d3dx9anim.h: sdk/inc
include/d3dx9mesh.h: sdk/include/dxsdk/d3dx9mesh.h, include/d3dx9of.h: sdk/include/dxsdk/d3dx9of.h,
include/d3dx9shader.h: sdk/include/dxsdk/d3dx9shader.h, include/d3dx9shape.h: sdk/include/dxsdk/d3dx9shape.h,
include/d3dx9tex.h: sdk/include/dxsdk/d3dx9tex.h, include/d3dx9xof.h: sdk/include/dxsdk/d3dx9xof.h}
tags: {wine: 5c5a8ae23ff7fe9c103de4e3dfce06bf1b8778c1}
tags: {wine: 63443f249f4dfe748ce3872e74ecf5c1d8aa55d9}