From 741c9e6a991773462ae35c0b728be541772f7804 Mon Sep 17 00:00:00 2001 From: Pekka Paalanen Date: Wed, 12 Apr 2023 14:39:10 +0300 Subject: [PATCH] backend-wayland: fully release pango and fontconfig This was not found in the test suite, but if you run wayland-backend manually with ASan, you see the same leaks as in backend-headless: fully release pango and fontconfig Fix them the same way. Signed-off-by: Pekka Paalanen --- libweston/backend-wayland/wayland.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/libweston/backend-wayland/wayland.c b/libweston/backend-wayland/wayland.c index e882d248..afa40e87 100644 --- a/libweston/backend-wayland/wayland.c +++ b/libweston/backend-wayland/wayland.c @@ -2794,6 +2794,8 @@ wayland_destroy(struct weston_backend *backend) wl_display_flush(b->parent.wl_display); wl_display_disconnect(b->parent.wl_display); + cleanup_after_cairo(); + free(b); } @@ -2970,6 +2972,7 @@ wayland_backend_destroy(struct wayland_backend *b) wl_cursor_theme_destroy(b->cursor_theme); weston_compositor_shutdown(b->compositor); + cleanup_after_cairo(); free(b->formats); free(b); }