mirror of
git://source.winehq.org/git/wine.git
synced 2024-10-06 12:40:03 +00:00
sapi: Invoke AddRef in ISpVoice::SetVoice.
This commit is contained in:
parent
5fccc408c6
commit
9941a71649
|
@ -641,7 +641,6 @@ static HRESULT WINAPI spvoice_SetVoice(ISpVoice *iface, ISpObjectToken *token)
|
|||
ISpTTSEngine *engine;
|
||||
HRESULT hr;
|
||||
|
||||
|
||||
TRACE("(%p, %p).\n", iface, token);
|
||||
|
||||
if (!token)
|
||||
|
@ -649,6 +648,8 @@ static HRESULT WINAPI spvoice_SetVoice(ISpVoice *iface, ISpObjectToken *token)
|
|||
if (FAILED(hr = create_default_token(SPCAT_VOICES, &token)))
|
||||
return hr;
|
||||
}
|
||||
else
|
||||
ISpObjectToken_AddRef(token);
|
||||
|
||||
hr = ISpObjectToken_CreateInstance(token, NULL, CLSCTX_ALL, &IID_ISpTTSEngine, (void **)&engine);
|
||||
ISpObjectToken_Release(token);
|
||||
|
|
Loading…
Reference in a new issue