diff options
Diffstat (limited to 'backend')
-rw-r--r-- | backend/drm/drm.c | 2 |
1 files changed, 2 insertions, 0 deletions
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; |