backend-wayland: Free pixel formats on shutdown

We allocated them, we should free them.

Signed-off-by: Daniel Stone <daniels@collabora.com>
This commit is contained in:
Daniel Stone 2023-07-12 12:29:57 +01:00
parent 04c29e6aae
commit daac6fc91d

View File

@ -2802,6 +2802,8 @@ wayland_destroy(struct weston_backend *backend)
wl_cursor_theme_destroy(b->cursor_theme);
free(b->formats);
wl_registry_destroy(b->parent.registry);
wl_display_flush(b->parent.wl_display);
wl_display_disconnect(b->parent.wl_display);