backend-x11: Fix error shutdown path for x11

Another fix for 14c52a942b, 'backend-x11: enable multi-backend support'.

Signed-off-by: Marius Vlad <marius.vlad@collabora.com>
This commit is contained in:
Marius Vlad 2023-11-15 13:17:14 +02:00
parent 7d7ce84cc6
commit 93e4f4e01f
1 changed files with 1 additions and 0 deletions

View File

@ -1990,6 +1990,7 @@ err_renderer:
err_xdisplay: err_xdisplay:
XCloseDisplay(b->dpy); XCloseDisplay(b->dpy);
err_free: err_free:
wl_list_remove(&b->base.link);
free(b->formats); free(b->formats);
free(b); free(b);
return NULL; return NULL;