From 1e25ff3cc4d015aa939ad49e334acb16d44e1b94 Mon Sep 17 00:00:00 2001 From: Matteo Bruni Date: Wed, 22 Jul 2020 19:00:54 +0200 Subject: [PATCH] wined3d: Correctly destroy the adapter on format initialization failure in no3d mode. Signed-off-by: Matteo Bruni Signed-off-by: Henri Verbeet Signed-off-by: Alexandre Julliard --- dlls/wined3d/directx.c | 1 + 1 file changed, 1 insertion(+) diff --git a/dlls/wined3d/directx.c b/dlls/wined3d/directx.c index 533d99f026f..e797f218881 100644 --- a/dlls/wined3d/directx.c +++ b/dlls/wined3d/directx.c @@ -2991,6 +2991,7 @@ static struct wined3d_adapter *wined3d_adapter_no3d_create(unsigned int ordinal, if (!wined3d_adapter_no3d_init_format_info(adapter)) { + wined3d_adapter_cleanup(adapter); heap_free(adapter); return NULL; }