[PATCH 1/6] mf/samplegrabber: Always release cancellation key when timer is invoked.
Derek Lesho
dlesho at codeweavers.com
Wed Jan 5 09:52:28 CST 2022
On 1/5/22 06:01, Nikolay Sivov wrote:
>
>
> On 1/4/22 20:35, Derek Lesho wrote:
>> The sample grabber currently leaks the key on the last invokation of
>> the timer, as it is only released when stream_schedule_sample is called.
> It's also released when sample grabber sink is released. Is that not
> always enough? Or is that useful when sink is reused for next topology?
>
>
The problem is that it introduces a circular dependency, the cancel key
holds a reference to the timer callback, which contributes to the
reference count of the sample grabber stream sink and media sink.
More information about the wine-devel
mailing list