30 Sep
2023
30 Sep
'23
5:02 p.m.
Nikolay Sivov (@nsivov) commented about dlls/winetts/tts.c:
+ + TRACE("(%p) ref=%lu\n", This, ref); + + return ref; +} + +static ULONG WINAPI ttsengine_Release(ISpTTSEngine *iface) +{ + struct ttsengine *This = impl_from_ISpTTSEngine(iface); + ULONG ref = InterlockedDecrement(&This->ref); + + TRACE("(%p) ref=%lu\n", This, ref); + + if (!ref) + { + ISpObjectToken_Release(This->token); Should probably check for null token here.
-- https://gitlab.winehq.org/wine/wine/-/merge_requests/3988#note_47275