From a6a5a19356ea0c5ea635a53d6d83b283f5c8a7c8 Mon Sep 17 00:00:00 2001 From: Andri Yngvason Date: Sat, 13 Jun 2020 12:56:24 +0000 Subject: [PATCH] backend: drm: Fix dmabuf resource leak --- backend/drm/renderer.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/backend/drm/renderer.c b/backend/drm/renderer.c index c82663e6a..2f9769f54 100644 --- a/backend/drm/renderer.c +++ b/backend/drm/renderer.c @@ -180,6 +180,8 @@ static struct wlr_texture *get_tex_for_bo(struct wlr_drm_renderer *renderer, gbm_bo_set_user_data(bo, tex, free_tex); } + wlr_dmabuf_attributes_finish(&attribs); + return tex; }