From 09f65f266e99a9d1764bd1c8df849042f200dbba Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Corentin=20No=C3=ABl?= Date: Wed, 24 May 2023 16:23:35 +0200 Subject: [PATCH] pipe-loader: Do not destroy the winsys on screen creation failure MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit The winsys is always destroyed on pipe_loader_device release. Signed-off-by: Corentin Noël Closes: https://gitlab.freedesktop.org/mesa/mesa/-/issues/9020 Reviewed-by: Erik Faye-Lund Reviewed-by: Emil Velikov Part-of: --- src/gallium/auxiliary/pipe-loader/pipe_loader_sw.c | 2 -- 1 file changed, 2 deletions(-) diff --git a/src/gallium/auxiliary/pipe-loader/pipe_loader_sw.c b/src/gallium/auxiliary/pipe-loader/pipe_loader_sw.c index e11837f2c47..829f41262eb 100644 --- a/src/gallium/auxiliary/pipe-loader/pipe_loader_sw.c +++ b/src/gallium/auxiliary/pipe-loader/pipe_loader_sw.c @@ -424,8 +424,6 @@ pipe_loader_sw_create_screen(struct pipe_loader_device *dev, struct pipe_screen *screen; screen = sdev->dd->create_screen(sdev->ws, config, sw_vk); - if (!screen) - sdev->ws->destroy(sdev->ws); return screen ? debug_screen_wrap(screen) : NULL; }