Henri Verbeet : d3d9: Free "elements" in a vertexdeclaration_init() error path (Valgrind).
Alexandre Julliard
julliard at winehq.org
Thu Oct 22 10:39:55 CDT 2009
Module: wine
Branch: master
Commit: 66961840a5447af4e584acaa5b26a02bcf58f928
URL: http://source.winehq.org/git/wine.git/?a=commit;h=66961840a5447af4e584acaa5b26a02bcf58f928
Author: Henri Verbeet <hverbeet at codeweavers.com>
Date: Thu Oct 22 10:09:57 2009 +0200
d3d9: Free "elements" in a vertexdeclaration_init() error path (Valgrind).
---
dlls/d3d9/vertexdeclaration.c | 1 +
1 files changed, 1 insertions(+), 0 deletions(-)
diff --git a/dlls/d3d9/vertexdeclaration.c b/dlls/d3d9/vertexdeclaration.c
index 9cb0528..cd0829f 100644
--- a/dlls/d3d9/vertexdeclaration.c
+++ b/dlls/d3d9/vertexdeclaration.c
@@ -405,6 +405,7 @@ HRESULT vertexdeclaration_init(IDirect3DVertexDeclaration9Impl *declaration,
HeapFree(GetProcessHeap(), 0, wined3d_elements);
if (FAILED(hr))
{
+ HeapFree(GetProcessHeap(), 0, declaration->elements);
WARN("Failed to create wined3d vertex declaration, hr %#x.\n", hr);
return hr;
}
More information about the wine-cvs
mailing list