mirror of
https://gitlab.freedesktop.org/wayland/weston.git
synced 2026-05-31 15:48:23 +02:00
When create_renderbuffer_dmabuf() fails and returns NULL, the previously allocated linux_dmabuf_memory was leaked because pipewire_output_setup_dmabuf() had already been called with no cleanup path. Reorder the calls so that create_renderbuffer_dmabuf() is invoked first. If it fails, explicitly destroy linux_dmabuf_memory and return early to avoid the leak. Signed-off-by: Elliot Chen <elliot.chen@nxp.com> |
||
|---|---|---|
| .. | ||
| meson.build | ||
| pipewire.c | ||