d3drm: Fix a leak (coverity).

This commit is contained in:
Frédéric Delanoy 2012-11-08 10:37:31 +01:00 committed by Alexandre Julliard
parent 69f2ac0d52
commit 1ae9acb0df
1 changed files with 3 additions and 0 deletions

View File

@ -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);
}