27 Apr
2023
27 Apr
'23
6:42 a.m.
Huw Davies (@huw) commented about dlls/mmdevapi/audiosession.c:
+ TRACE("(%p) Refcount now %lu\n", This, ref); + return ref; +} + +static ULONG WINAPI ASC_Release(IAudioSessionControl2 *iface) +{ + struct audio_session_wrapper *This = impl_from_IAudioSessionControl2(iface); + ULONG ref = InterlockedDecrement(&This->ref); + TRACE("(%p) Refcount now %lu\n", This, ref); + + if (!ref){ + if (This->client) { + sessions_lock(); + This->client->session_wrapper = NULL; + sessions_unlock(); + AudioClient3_Vtbl.Release(&This->client->IAudioClient3_iface);
IAudioClient3_Release(&This->client->IAudioClient3_iface);
-- https://gitlab.winehq.org/wine/wine/-/merge_requests/2669#note_31340