Commit 0c65a00c authored by Alistair Leslie-Hughes's avatar Alistair Leslie-Hughes Committed by Alexandre Julliard

xaudio2_7: Correct reference count on newly created IXAPO object.

parent 06549f53
......@@ -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)
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment