d3drm: Fix a leak (coverity).
This commit is contained in:
parent
69f2ac0d52
commit
1ae9acb0df
|
@ -2702,7 +2702,10 @@ HRESULT Direct3DRMFrame_create(REFIID riid, IUnknown* parent, IUnknown** ret_ifa
|
|||
|
||||
hr = IDirect3DRMFrame_QueryInterface(parent, &IID_IDirect3DRMFrame3, (void**)&p);
|
||||
if (hr != S_OK)
|
||||
{
|
||||
HeapFree(GetProcessHeap(), 0, object);
|
||||
return hr;
|
||||
}
|
||||
IDirect3DRMFrame_Release(parent);
|
||||
IDirect3DRMFrame3_AddChild(p, &object->IDirect3DRMFrame3_iface);
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue