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; }