May 7, 2026
4:08 p.m.
On Tue Apr 21 13:10:24 2026 +0000, Giovanni Mascellani wrote:
You treat `final_release_event` as a borrowed reference, i.e. assuming that the caller won't destroy the handle it passed here until everything is done. This might or might not be correct, and it doesn't seem that tests are testing this. The caller might immediately destroy the handle and then wait for the event through a different duplicated handle, in which case you'd need to make your own duplicate here. Seems like the current behavior is correct, I added a test for it.
-- https://gitlab.winehq.org/wine/wine/-/merge_requests/9777#note_139132