Sven Baars : d3dx9: Release the full parameter name when a parameter is released (Valgrind).
Alexandre Julliard
julliard at winehq.org
Mon May 27 14:50:21 CDT 2019
Module: wine
Branch: master
Commit: 63443f249f4dfe748ce3872e74ecf5c1d8aa55d9
URL: https://source.winehq.org/git/wine.git/?a=commit;h=63443f249f4dfe748ce3872e74ecf5c1d8aa55d9
Author: Sven Baars <sven.wine at gmail.com>
Date: Sat May 25 13:59:49 2019 +0200
d3dx9: Release the full parameter name when a parameter is released (Valgrind).
Signed-off-by: Sven Baars <sven.wine at gmail.com>
Signed-off-by: Matteo Bruni <mbruni at codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard at winehq.org>
---
dlls/d3dx9_36/effect.c | 3 +++
1 file changed, 3 insertions(+)
diff --git a/dlls/d3dx9_36/effect.c b/dlls/d3dx9_36/effect.c
index a4bce69..4b6321b 100644
--- a/dlls/d3dx9_36/effect.c
+++ b/dlls/d3dx9_36/effect.c
@@ -581,6 +581,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 */
More information about the wine-cvs
mailing list