From 9af935a519e511625f6c5e57be7d1f1b48cded5e Mon Sep 17 00:00:00 2001 From: Zebediah Figura Date: Wed, 15 Jan 2020 00:24:32 -0600 Subject: [PATCH] compobj: Reference the returned IMalloc pointer in CoGetMalloc(). Wine-Bug: https://bugs.winehq.org/show_bug.cgi?id=42554 Signed-off-by: Zebediah Figura Signed-off-by: Alexandre Julliard --- dlls/compobj.dll16/compobj.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/dlls/compobj.dll16/compobj.c b/dlls/compobj.dll16/compobj.c index 52e5d72688f..ff82f9087b9 100644 --- a/dlls/compobj.dll16/compobj.c +++ b/dlls/compobj.dll16/compobj.c @@ -275,7 +275,7 @@ DWORD WINAPI CoBuildVersion16(void) */ HRESULT WINAPI CoGetMalloc16(MEMCTX context, SEGPTR *malloc) { - *malloc = compobj_malloc; + call_IMalloc_AddRef(*malloc = compobj_malloc); return S_OK; }