March 17, 2023
8:46 a.m.
For example, `d3d12_committed_resource_create()` assigns `resource->heap` (inside `vkd3d_allocate_resource_memory()`), but doesn't increment its reference count.
The heap is created with `internal_refcount = 1` so this decref is required to free it. Valgrind reports no leaks in test_create_committed_resource(). -- https://gitlab.winehq.org/wine/vkd3d/-/merge_requests/127#note_27165