Commit 1ae9acb0 authored by Frédéric Delanoy's avatar Frédéric Delanoy Committed by Alexandre Julliard

d3drm: Fix a leak (coverity).

parent 69f2ac0d
......@@ -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);
}
......
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