From 93e4f4e01fc2a0dd8470ce9549e2130b450c424c Mon Sep 17 00:00:00 2001 From: Marius Vlad Date: Wed, 15 Nov 2023 13:17:14 +0200 Subject: [PATCH] backend-x11: Fix error shutdown path for x11 Another fix for 14c52a942b, 'backend-x11: enable multi-backend support'. Signed-off-by: Marius Vlad --- libweston/backend-x11/x11.c | 1 + 1 file changed, 1 insertion(+) diff --git a/libweston/backend-x11/x11.c b/libweston/backend-x11/x11.c index 8f55e8d7..a9873b8f 100644 --- a/libweston/backend-x11/x11.c +++ b/libweston/backend-x11/x11.c @@ -1990,6 +1990,7 @@ err_renderer: err_xdisplay: XCloseDisplay(b->dpy); err_free: + wl_list_remove(&b->base.link); free(b->formats); free(b); return NULL;