On Thu, 27 May 2021 at 04:18, Zebediah Figura z.figura12@gmail.com wrote:
+static ULONG STDMETHODCALLTYPE d3d11_command_list_Release(ID3D11CommandList *iface) +{
- struct d3d11_command_list *list = impl_from_ID3D11CommandList(iface);
- ULONG refcount = InterlockedDecrement(&list->refcount);
- TRACE("%p decreasing refcount to %u.\n", list, refcount);
- if (!refcount)
- {
wined3d_mutex_lock();
wined3d_command_list_decref(list->wined3d_list);
wined3d_mutex_unlock();
ID3D11Device2_Release(list->device);
heap_free(list);
- }
- return refcount;
+}
wined3d_private_store_cleanup(&list->private_store);