backend/wayland: destroy zwp_linux_buffer_params_v1 objects

Don't leak these.
This commit is contained in:
Simon Ser 2023-02-28 20:05:46 +01:00
parent a160304289
commit af5cc860e1

View File

@ -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;
}