1
0
Fork 0
mirror of synced 2025-03-07 03:53:26 +01:00

d2d1: Fix a double free on error path (Valgrind).

Signed-off-by: Nikolay Sivov <nsivov@codeweavers.com>
This commit is contained in:
Nikolay Sivov 2024-03-24 01:12:55 +01:00 committed by Alexandre Julliard
parent 967f3a5074
commit df97793045

View file

@ -3974,7 +3974,6 @@ HRESULT d2d_d3d_create_render_target(struct d2d_device *device, IDXGISurface *su
{
WARN("Failed to create target bitmap, hr %#lx.\n", hr);
IUnknown_Release(&object->IUnknown_iface);
free(object);
return hr;
}