Signed-off-by: Andrew Eikum aeikum@codeweavers.com
On Mon, Mar 09, 2020 at 10:10:30AM +0000, Alistair Leslie-Hughes wrote:
Signed-off-by: Alistair Leslie-Hughes leslie_alistair@hotmail.com
dlls/xaudio2_7/xapo.c | 7 ++----- 1 file changed, 2 insertions(+), 5 deletions(-)
diff --git a/dlls/xaudio2_7/xapo.c b/dlls/xaudio2_7/xapo.c index 9788cb38e8..e64523ea19 100644 --- a/dlls/xaudio2_7/xapo.c +++ b/dlls/xaudio2_7/xapo.c @@ -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)
2.25.1