Henri Verbeet : d3d9: Release the vertex declaration once we' re done with it.
Alexandre Julliard
julliard at winehq.org
Mon Dec 29 08:47:53 CST 2008
Module: wine
Branch: master
Commit: a394dbec139d9b68842ec2803fe93576ec022e20
URL: http://source.winehq.org/git/wine.git/?a=commit;h=a394dbec139d9b68842ec2803fe93576ec022e20
Author: Henri Verbeet <hverbeet at codeweavers.com>
Date: Mon Dec 29 09:14:28 2008 +0100
d3d9: Release the vertex declaration once we're done with it.
---
dlls/d3d9/device.c | 11 ++++++++++-
1 files changed, 10 insertions(+), 1 deletions(-)
diff --git a/dlls/d3d9/device.c b/dlls/d3d9/device.c
index d8c6e58..9133fad 100644
--- a/dlls/d3d9/device.c
+++ b/dlls/d3d9/device.c
@@ -1333,7 +1333,16 @@ static HRESULT WINAPI IDirect3DDevice9Impl_GetFVF(LPDIRECT3DDEVICE9EX iface, DWO
return hr;
}
- *pFVF = decl ? ((IDirect3DVertexDeclaration9Impl *)decl)->convFVF : 0;
+ if (decl)
+ {
+ *pFVF = ((IDirect3DVertexDeclaration9Impl *)decl)->convFVF;
+ IDirect3DVertexDeclaration9_Release(decl);
+ }
+ else
+ {
+ *pFVF = 0;
+ }
+
TRACE("Returning FVF %#x\n", *pFVF);
return hr;
More information about the wine-cvs
mailing list