Skip to content

Fix D3D11 timeline semaphore handle double-close

SafariMonkey requested to merge SafariMonkey/monado:fix-handle-double-free into main

wil::unique_handle was never released and so the handle was closed at the end of the function. Since unique_compositor_semaphore_ref will also close the handles on destruction, I adjusted both D3D11 and D3D12 code to make the release call as close as possible to timeline_semaphore's construction.

Bug only seen in in-process but it is in normal runtime. (Inconsistent semantics on some calls apparently)

Edited by Rylie Pavlik

Merge request reports