d3drm: Fix a leak (coverity).

This commit is contained in:
Frédéric Delanoy 2012-12-22 23:29:39 +01:00 committed by Alexandre Julliard
parent 08f73e2a07
commit 8ec82dfaae
1 changed files with 1 additions and 0 deletions

View File

@ -2143,6 +2143,7 @@ static HRESULT WINAPI IDirect3DRMMeshBuilder3Impl_CreateMesh(IDirect3DRMMeshBuil
face_data = HeapAlloc(GetProcessHeap(), 0, This->face_data_size * sizeof(*face_data));
if (!face_data)
{
HeapFree(GetProcessHeap(), 0, used_vertices);
IDirect3DRMMesh_Release(*mesh);
return E_OUTOFMEMORY;
}