riched20: Take a ref on text host.

Huw D M Davies h.davies1 at physics.ox.ac.uk
Mon Mar 27 07:10:37 CST 2006


        Huw Davies <huw at codeweavers.com>
        riched20: Take a ref on text host.
-- 
Huw Davies
huw at codeweavers.com
---

 dlls/riched20/txtsrv.c |    1 +
 1 files changed, 1 insertions(+), 0 deletions(-)

3f60c093337236f45ac2bfd719d558bb43923f78
diff --git a/dlls/riched20/txtsrv.c b/dlls/riched20/txtsrv.c
index 6bb0b9d..65dc54d 100644
--- a/dlls/riched20/txtsrv.c
+++ b/dlls/riched20/txtsrv.c
@@ -79,6 +79,7 @@ HRESULT WINAPI CreateTextServices(IUnkno
       return E_OUTOFMEMORY;
    InitializeCriticalSection(&ITextImpl->csTxtSrv);
    ITextImpl->ref = 1;
+   ITextHost_AddRef(pITextHost);
    ITextImpl->pMyHost = pITextHost;
    ITextImpl->lpVtbl = &textservices_Vtbl;
 



More information about the wine-patches mailing list