Module: wine Branch: master Commit: 9570cd5be461208a58d3f0c2a2029c97ae6ba0d6 URL: http://source.winehq.org/git/wine.git/?a=commit;h=9570cd5be461208a58d3f0c2a2...
Author: Stefan Dösinger stefandoesinger@gmx.at Date: Tue Jun 12 10:17:20 2007 +0200
d3d9: Release the wined3d query when the d3d9 query is destroyed.
---
dlls/d3d9/query.c | 3 +++ 1 files changed, 3 insertions(+), 0 deletions(-)
diff --git a/dlls/d3d9/query.c b/dlls/d3d9/query.c index a11aace..94cd7ec 100644 --- a/dlls/d3d9/query.c +++ b/dlls/d3d9/query.c @@ -57,6 +57,9 @@ static ULONG WINAPI IDirect3DQuery9Impl_Release(LPDIRECT3DQUERY9 iface) { TRACE("(%p) : ReleaseRef to %d\n", This, ref);
if (ref == 0) { + EnterCriticalSection(&d3d9_cs); + IWineD3DQuery_Release(This->wineD3DQuery); + LeaveCriticalSection(&d3d9_cs); IUnknown_Release(This->parentDevice); HeapFree(GetProcessHeap(), 0, This); }