ddraw: Fix two memory leaks (Smatch).
This commit is contained in:
parent
158c8b76cb
commit
f1f5536d8f
|
@ -1353,6 +1353,7 @@ static HRESULT ddraw_surface_blt_clipped(IDirectDrawSurfaceImpl *dst_surface, co
|
||||||
&dst_rect, clip_list, &clip_list_size)))
|
&dst_rect, clip_list, &clip_list_size)))
|
||||||
{
|
{
|
||||||
WARN("Failed to get clip list, hr %#x.\n", hr);
|
WARN("Failed to get clip list, hr %#x.\n", hr);
|
||||||
|
HeapFree(GetProcessHeap(), 0, clip_list);
|
||||||
return hr;
|
return hr;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -1386,6 +1387,7 @@ static HRESULT ddraw_surface_blt_clipped(IDirectDrawSurfaceImpl *dst_surface, co
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
HeapFree(GetProcessHeap(), 0, clip_list);
|
||||||
return hr;
|
return hr;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue