Stefan Dösinger : d3d9: Release the wined3d query when the d3d9 query is destroyed.

Alexandre Julliard julliard at wine.codeweavers.com
Tue Jun 19 06:42:43 CDT 2007


Module: wine
Branch: master
Commit: 9570cd5be461208a58d3f0c2a2029c97ae6ba0d6
URL:    http://source.winehq.org/git/wine.git/?a=commit;h=9570cd5be461208a58d3f0c2a2029c97ae6ba0d6

Author: Stefan Dösinger <stefandoesinger at 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);
     }




More information about the wine-cvs mailing list