Commit 8ec82dfa authored by Frédéric Delanoy's avatar Frédéric Delanoy Committed by Alexandre Julliard

d3drm: Fix a leak (coverity).

parent 08f73e2a
...@@ -2143,6 +2143,7 @@ static HRESULT WINAPI IDirect3DRMMeshBuilder3Impl_CreateMesh(IDirect3DRMMeshBuil ...@@ -2143,6 +2143,7 @@ static HRESULT WINAPI IDirect3DRMMeshBuilder3Impl_CreateMesh(IDirect3DRMMeshBuil
face_data = HeapAlloc(GetProcessHeap(), 0, This->face_data_size * sizeof(*face_data)); face_data = HeapAlloc(GetProcessHeap(), 0, This->face_data_size * sizeof(*face_data));
if (!face_data) if (!face_data)
{ {
HeapFree(GetProcessHeap(), 0, used_vertices);
IDirect3DRMMesh_Release(*mesh); IDirect3DRMMesh_Release(*mesh);
return E_OUTOFMEMORY; return E_OUTOFMEMORY;
} }
......
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