diff options
author | Pekka Paalanen <pekka.paalanen@collabora.com> | 2023-04-12 14:39:10 +0300 |
---|---|---|
committer | Pekka Paalanen <pq@iki.fi> | 2023-04-12 12:34:58 +0000 |
commit | 741c9e6a991773462ae35c0b728be541772f7804 (patch) | |
tree | bde435f783ca8e88a331af8ebc643d6f84fcb87e | |
parent | 823580e07094feab7d2a8a229fd7bd3a81dab5bc (diff) | |
download | weston-741c9e6a991773462ae35c0b728be541772f7804.tar.gz |
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 <pekka.paalanen@collabora.com>
-rw-r--r-- | libweston/backend-wayland/wayland.c | 3 |
1 files changed, 3 insertions, 0 deletions
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); } |