[PATCH] d3dx9_36/tests: Fix a memory leak in test_createtext.

Alex Henrie alexhenrie24 at gmail.com
Mon Feb 27 00:52:27 CST 2017


Cc: Dylan Smith <dylan.ah.smith at gmail.com>

Coverity #1317179 and 1317180

Signed-off-by: Alex Henrie <alexhenrie24 at gmail.com>
---
 dlls/d3dx9_36/tests/mesh.c | 3 +--
 1 file changed, 1 insertion(+), 2 deletions(-)

diff --git a/dlls/d3dx9_36/tests/mesh.c b/dlls/d3dx9_36/tests/mesh.c
index 95dd06e466..64b7b8823c 100644
--- a/dlls/d3dx9_36/tests/mesh.c
+++ b/dlls/d3dx9_36/tests/mesh.c
@@ -4340,8 +4340,7 @@ static void test_createtext(IDirect3DDevice9 *device, HDC hdc, const char *text,
     if (!compute_text_mesh(&mesh, text, deviation, extrusion, otm.otmEMSquare, glyphs))
     {
         skip("Couldn't create mesh\n");
-        d3dxmesh->lpVtbl->Release(d3dxmesh);
-        return;
+        goto error;
     }
     mesh.fvf = D3DFVF_XYZ | D3DFVF_NORMAL;
 
-- 
2.11.1




More information about the wine-patches mailing list