dxgi: Don't grab wined3d lock for wined3d_decref().

Signed-off-by: Jan Sikorski <jsikorski@codeweavers.com>
Signed-off-by: Henri Verbeet <hverbeet@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
This commit is contained in:
Jan Sikorski 2021-10-15 14:26:22 +02:00 committed by Alexandre Julliard
parent 98e2668949
commit 6d8cc776f5
1 changed files with 0 additions and 2 deletions

View File

@ -80,9 +80,7 @@ static ULONG STDMETHODCALLTYPE dxgi_factory_Release(IWineDXGIFactory *iface)
if (factory->device_window)
DestroyWindow(factory->device_window);
wined3d_mutex_lock();
wined3d_decref(factory->wined3d);
wined3d_mutex_unlock();
wined3d_private_store_cleanup(&factory->private_store);
heap_free(factory);
}