[PATCH 0/1] MR5393: d2d1: Fix a double free on error path (Valgrind).
This fixes test crashes for me that are relatively easy to reproduce. With the fix I had 100 successful runs. Thanks to @rbernon for the help with valgrind setup. -- https://gitlab.winehq.org/wine/wine/-/merge_requests/5393
From: Nikolay Sivov <nsivov(a)codeweavers.com> Signed-off-by: Nikolay Sivov <nsivov(a)codeweavers.com> --- dlls/d2d1/device.c | 1 - 1 file changed, 1 deletion(-) diff --git a/dlls/d2d1/device.c b/dlls/d2d1/device.c index 94a8b80a745..3cc23c0325b 100644 --- a/dlls/d2d1/device.c +++ b/dlls/d2d1/device.c @@ -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; } -- GitLab https://gitlab.winehq.org/wine/wine/-/merge_requests/5393
participants (2)
-
Nikolay Sivov -
Nikolay Sivov (@nsivov)