riched20: Take a ref on text host.

This commit is contained in:
Huw Davies 2006-03-27 14:10:37 +01:00 committed by Alexandre Julliard
parent 4ce100aa64
commit d6ce9db80f

View File

@ -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;