mirror of
https://github.com/hyprwm/wlroots-hyprland.git
synced 2024-11-22 12:55:58 +01: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(
|
||||
params, dmabuf->width, dmabuf->height, dmabuf->format, 0);
|
||||
zwp_linux_buffer_params_v1_destroy(params);
|
||||
// TODO: handle create() errors
|
||||
return wl_buffer;
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue