d3d9: Release the wined3d query when the d3d9 query is destroyed.

This commit is contained in:
Stefan Dösinger 2007-06-12 10:17:20 +02:00 committed by Alexandre Julliard
parent c0cc0f1062
commit 9570cd5be4
1 changed files with 3 additions and 0 deletions

View File

@ -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);
}