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>
This commit is contained in:
Pekka Paalanen 2023-04-12 14:39:10 +03:00 committed by Pekka Paalanen
parent 823580e070
commit 741c9e6a99
1 changed files with 3 additions and 0 deletions

View File

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