backend-wayland: fix memory leak in wayland_shm_buffer_attach
Since the pixman_region32_t damage is initialized unconditionally, also finalize it unconditionally. Otherwise we leak rectangle memory when sb->output->frame is NULL. Reported-by: Daniel Stone <daniels@collabora.com> Signed-off-by: Philipp Zabel <p.zabel@pengutronix.de>
parent
0d4c523c
Loading
Loading
Pipeline
#904461
passed
with stages
in
2 minutes and 49 seconds
Loading
Please register or sign in to comment