backend/drm: don't leak mgpu_formats

This commit is contained in:
llyyr 2025-01-16 19:10:11 +05:30 committed by Simon Ser
parent 8f56f7ca43
commit 9ab87167b5

View file

@ -55,6 +55,7 @@ static void backend_destroy(struct wlr_backend *backend) {
wl_list_remove(&drm->dev_remove.link);
if (drm->mgpu_renderer.wlr_rend) {
wlr_drm_format_set_finish(&drm->mgpu_formats);
finish_drm_renderer(&drm->mgpu_renderer);
}