d3d9: Release the wined3d query when the d3d9 query is destroyed.
This commit is contained in:
parent
c0cc0f1062
commit
9570cd5be4
|
@ -57,6 +57,9 @@ static ULONG WINAPI IDirect3DQuery9Impl_Release(LPDIRECT3DQUERY9 iface) {
|
||||||
TRACE("(%p) : ReleaseRef to %d\n", This, ref);
|
TRACE("(%p) : ReleaseRef to %d\n", This, ref);
|
||||||
|
|
||||||
if (ref == 0) {
|
if (ref == 0) {
|
||||||
|
EnterCriticalSection(&d3d9_cs);
|
||||||
|
IWineD3DQuery_Release(This->wineD3DQuery);
|
||||||
|
LeaveCriticalSection(&d3d9_cs);
|
||||||
IUnknown_Release(This->parentDevice);
|
IUnknown_Release(This->parentDevice);
|
||||||
HeapFree(GetProcessHeap(), 0, This);
|
HeapFree(GetProcessHeap(), 0, This);
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue