wayland/dma-buf: Add missing wl_array_release()
So we don't leak the array.
Fixes 7acecb1c72
Part-of: <https://gitlab.gnome.org/GNOME/mutter/-/merge_requests/2297>
This commit is contained in:
parent
17bb0a3de4
commit
5b9abecc1b
@ -275,6 +275,7 @@ meta_wayland_dma_buf_feedback_send (MetaWaylandDmaBufFeedback *feedback,
|
||||
device_id_ptr = wl_array_add (&main_device_buf, sizeof (*device_id_ptr));
|
||||
*device_id_ptr = feedback->main_device_id;
|
||||
zwp_linux_dmabuf_feedback_v1_send_main_device (resource, &main_device_buf);
|
||||
wl_array_release (&main_device_buf);
|
||||
|
||||
g_list_foreach (feedback->tranches,
|
||||
(GFunc) meta_wayland_dma_buf_tranche_send,
|
||||
|
Loading…
Reference in New Issue
Block a user