From b45396c790277f3527425bf60c9f27718edf25c8 Mon Sep 17 00:00:00 2001 From: Alexander Orzechowski Date: Wed, 10 May 2023 16:02:07 -0400 Subject: wlr_drm_format: Introduce drm_format_finish --- backend/drm/drm.c | 2 ++ 1 file changed, 2 insertions(+) (limited to 'backend/drm') diff --git a/backend/drm/drm.c b/backend/drm/drm.c index 7b6b5451..0ac41afb 100644 --- a/backend/drm/drm.c +++ b/backend/drm/drm.c @@ -513,6 +513,7 @@ static bool drm_connector_state_update_primary_fb(struct wlr_drm_connector *conn // TODO: fallback to modifier-less buffer allocation bool ok = init_drm_surface(&plane->mgpu_surf, &drm->mgpu_renderer, source_buf->width, source_buf->height, format); + wlr_drm_format_finish(format); free(format); if (!ok) { return false; @@ -953,6 +954,7 @@ static bool drm_connector_set_cursor(struct wlr_output *output, bool ok = init_drm_surface(&plane->mgpu_surf, &drm->mgpu_renderer, buffer->width, buffer->height, format); + wlr_drm_format_finish(format); free(format); if (!ok) { return false; -- cgit v1.2.3