Skip to content

backend-wayland: fix memory leak in wayland_shm_buffer_attach

Philipp Zabel requested to merge pH5/weston:wayland-fini-damage into main

Since the pixman_region32_t damage is initialized unconditionally, also finalize it unconditionally. Otherwise we leak rectangle memory when sb->output->frame is NULL.

Found by @daniels here: !1168 (comment 1855281)

Merge request reports