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.