compobj: Reference the returned IMalloc pointer in CoGetMalloc().
Wine-Bug: https://bugs.winehq.org/show_bug.cgi?id=42554 Signed-off-by: Zebediah Figura <z.figura12@gmail.com> Signed-off-by: Alexandre Julliard <julliard@winehq.org>
This commit is contained in:
parent
588af8ca85
commit
9af935a519
|
@ -275,7 +275,7 @@ DWORD WINAPI CoBuildVersion16(void)
|
||||||
*/
|
*/
|
||||||
HRESULT WINAPI CoGetMalloc16(MEMCTX context, SEGPTR *malloc)
|
HRESULT WINAPI CoGetMalloc16(MEMCTX context, SEGPTR *malloc)
|
||||||
{
|
{
|
||||||
*malloc = compobj_malloc;
|
call_IMalloc_AddRef(*malloc = compobj_malloc);
|
||||||
return S_OK;
|
return S_OK;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue