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

Alexandre Julliard julliard at winehq.org
Mon Nov 25 09:12:28 CST 2019


Module: wine
Branch: stable
Commit: 40f829865904c33184bb5e7bd0d2e9b330397033
URL:    https://source.winehq.org/git/wine.git/?a=commit;h=40f829865904c33184bb5e7bd0d2e9b330397033

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>
(cherry picked from commit 63443f249f4dfe748ce3872e74ecf5c1d8aa55d9)
Signed-off-by: Michael Stefaniuc <mstefani 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 33197de9bd..8bc9ba8f5e 100644
--- a/dlls/d3dx9_36/effect.c
+++ b/dlls/d3dx9_36/effect.c
@@ -592,6 +592,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