xaudio2_7: Correct reference count on newly created IXAPO object.

Signed-off-by: Alistair Leslie-Hughes <leslie_alistair@hotmail.com>
Signed-off-by: Andrew Eikum <aeikum@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
This commit is contained in:
Alistair Leslie-Hughes 2020-03-09 10:10:30 +00:00 committed by Alexandre Julliard
parent 06549f53f9
commit 0c65a00c33
1 changed files with 2 additions and 5 deletions

View File

@ -367,12 +367,9 @@ static HRESULT WINAPI xapocf_CreateInstance(IClassFactory *iface, IUnknown *pOut
}
hr = IXAPO_QueryInterface(&object->IXAPO_iface, riid, ppobj);
if(FAILED(hr)){
HeapFree(GetProcessHeap(), 0, object);
return hr;
}
IXAPO_Release(&object->IXAPO_iface);
return S_OK;
return hr;
}
static HRESULT WINAPI xapocf_LockServer(IClassFactory *iface, BOOL dolock)