riched20: Take a ref on text host.
This commit is contained in:
parent
4ce100aa64
commit
d6ce9db80f
|
@ -79,6 +79,7 @@ HRESULT WINAPI CreateTextServices(IUnknown * pUnkOuter,
|
|||
return E_OUTOFMEMORY;
|
||||
InitializeCriticalSection(&ITextImpl->csTxtSrv);
|
||||
ITextImpl->ref = 1;
|
||||
ITextHost_AddRef(pITextHost);
|
||||
ITextImpl->pMyHost = pITextHost;
|
||||
ITextImpl->lpVtbl = &textservices_Vtbl;
|
||||
|
||||
|
|
Loading…
Reference in New Issue