[PATCH v2 0/1] MR29: mfplat: Avoid a race condition when releasing a tracked sample.

Nikolay Sivov (@nsivov) wine at gitlab.winehq.org
Sat May 7 07:37:16 CDT 2022


Turns out I missed a problem with this. When queues are shut down, releasing result object reenters sample release method, and potentially destroys it. On return original call continues, and uses critical section that has been just destroyed.

Attaching a possible fix for this.

[2.diff](/uploads/94a959648e483587b11172a6cc34b015/2.diff)

-- 
https://gitlab.winehq.org/wine/wine/-/merge_requests/29#note_743



More information about the wine-devel mailing list