Michael Mc Donnell : d3dx/tests: Fixed double free (valgrind).

Alexandre Julliard julliard at winehq.org
Tue Jul 26 11:37:58 CDT 2011


Module: wine
Branch: master
Commit: d1e328a0f50d7bb8b213d362dc625700f2c65faa
URL:    http://source.winehq.org/git/wine.git/?a=commit;h=d1e328a0f50d7bb8b213d362dc625700f2c65faa

Author: Michael Mc Donnell <michael at mcdonnell.dk>
Date:   Tue Jul 26 14:51:45 2011 +0200

d3dx/tests: Fixed double free (valgrind).

---

 dlls/d3dx9_36/tests/mesh.c |    1 +
 1 files changed, 1 insertions(+), 0 deletions(-)

diff --git a/dlls/d3dx9_36/tests/mesh.c b/dlls/d3dx9_36/tests/mesh.c
index 6522ff1..d4f4e3b 100644
--- a/dlls/d3dx9_36/tests/mesh.c
+++ b/dlls/d3dx9_36/tests/mesh.c
@@ -5399,6 +5399,7 @@ static void test_convert_adjacency_to_point_reps(void)
         }
 
         HeapFree(GetProcessHeap(), 0, point_reps);
+        point_reps = NULL;
 
         if (i != 0) /* First mesh will be freed during cleanup */
             mesh->lpVtbl->Release(mesh);




More information about the wine-cvs mailing list