Merge pull request #1 from yshui/next

win: fix leak in win_bind_mask
This commit is contained in:
Arda Atci
2022-10-10 20:01:50 +03:00
committed by GitHub

View File

@@ -357,6 +357,8 @@ bool win_bind_mask(struct backend_base *b, struct managed_win *w) {
pixman_region32_translate(&reg_bound_local, -w->g.x, -w->g.y);
w->mask_image = b->ops->make_mask(
b, (geometry_t){.width = w->g.width, .height = w->g.height}, &reg_bound_local);
pixman_region32_fini(&reg_bound_local);
if (!w->mask_image) {
return false;
}