aboutsummaryrefslogtreecommitdiff
path: root/backend
diff options
context:
space:
mode:
authorAndri Yngvason <andri@yngvason.is>2020-06-13 12:56:24 +0000
committerSimon Ser <contact@emersion.fr>2020-06-13 15:39:49 +0200
commita6a5a19356ea0c5ea635a53d6d83b283f5c8a7c8 (patch)
tree850e594410dead342a86b45edcd45c783b8a2a28 /backend
parent3c13527ead480909632f51c882239f4fa4aabc63 (diff)
backend: drm: Fix dmabuf resource leak
Diffstat (limited to 'backend')
-rw-r--r--backend/drm/renderer.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/backend/drm/renderer.c b/backend/drm/renderer.c
index c82663e6..2f9769f5 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;
}