mirror of
https://gitlab.freedesktop.org/wlroots/wlroots.git
synced 2026-03-18 05:34:29 -04:00
backend/wayland: destroy zwp_linux_buffer_params_v1 objects
Don't leak these.
This commit is contained in:
parent
a160304289
commit
af5cc860e1
1 changed files with 1 additions and 0 deletions
|
|
@ -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…
Add table
Add a link
Reference in a new issue