mirror of
git://source.winehq.org/git/wine.git
synced 2024-09-02 12:53:40 +00:00
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);
|
||||
|
||||
if (ref == 0) {
|
||||
EnterCriticalSection(&d3d9_cs);
|
||||
IWineD3DQuery_Release(This->wineD3DQuery);
|
||||
LeaveCriticalSection(&d3d9_cs);
|
||||
IUnknown_Release(This->parentDevice);
|
||||
HeapFree(GetProcessHeap(), 0, This);
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue