d3dx9_36/tests: free memory after use (Valgrind)
Austin English
austinenglish at gmail.com
Wed Feb 16 18:37:14 CST 2011
Fixes:
16 bytes in 1 blocks are definitely lost
at notify_alloc (heap.c:254)
by RtlAllocateHeap (heap.c:1701)
by D3DXCreateBuffer (core.c:113)
by D3DXCreateBoxTest (mesh.c:1398)
by func_mesh (mesh.c:2113)
by run_test (test.h:556)
by main (test.h:624)
--
-Austin
-------------- next part --------------
diff --git a/dlls/d3dx9_36/tests/mesh.c b/dlls/d3dx9_36/tests/mesh.c
index 5d1425b..05d68eb 100644
--- a/dlls/d3dx9_36/tests/mesh.c
+++ b/dlls/d3dx9_36/tests/mesh.c
@@ -1417,6 +1417,7 @@ static void D3DXCreateBoxTest(void)
end:
IDirect3DDevice9_Release(device);
IDirect3D9_Release(d3d);
+ ID3DXBuffer_Release(ppBuffer);
DestroyWindow(wnd);
}
More information about the wine-patches
mailing list