diff options
author | Simon Ser <contact@emersion.fr> | 2023-02-28 20:05:46 +0100 |
---|---|---|
committer | Simon Ser <contact@emersion.fr> | 2023-02-28 20:05:46 +0100 |
commit | af5cc860e10844d6840ffb314c18b06b43067e66 (patch) | |
tree | 118aecd528026610f4741e7363b48c848381ef20 /backend | |
parent | a1603042895e250f37961623f0fba17edd37031d (diff) |
backend/wayland: destroy zwp_linux_buffer_params_v1 objects
Don't leak these.
Diffstat (limited to 'backend')
-rw-r--r-- | backend/wayland/output.c | 1 |
1 files changed, 1 insertions, 0 deletions
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; } |