backend/wayland: destroy zwp_linux_buffer_params_v1 objects

Don't leak these.
Simon Ser 2 years ago
parent a160304289
commit af5cc860e1

@ -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( struct wl_buffer *wl_buffer = zwp_linux_buffer_params_v1_create_immed(
params, dmabuf->width, dmabuf->height, dmabuf->format, 0); params, dmabuf->width, dmabuf->height, dmabuf->format, 0);
zwp_linux_buffer_params_v1_destroy(params);
// TODO: handle create() errors // TODO: handle create() errors
return wl_buffer; return wl_buffer;
} }

Loading…
Cancel
Save