From af5cc860e10844d6840ffb314c18b06b43067e66 Mon Sep 17 00:00:00 2001 From: Simon Ser Date: Tue, 28 Feb 2023 20:05:46 +0100 Subject: [PATCH] backend/wayland: destroy zwp_linux_buffer_params_v1 objects Don't leak these. --- backend/wayland/output.c | 1 + 1 file changed, 1 insertion(+) diff --git a/backend/wayland/output.c b/backend/wayland/output.c index 28567502..7d2fdb34 100644 --- a/backend/wayland/output.c +++ b/backend/wayland/output.c @@ -172,6 +172,7 @@ static struct wl_buffer *import_dmabuf(struct wlr_wl_backend *wl, struct wl_buffer *wl_buffer = zwp_linux_buffer_params_v1_create_immed( params, dmabuf->width, dmabuf->height, dmabuf->format, 0); + zwp_linux_buffer_params_v1_destroy(params); // TODO: handle create() errors return wl_buffer; }