Skip to content

Commit

Permalink
win: fix leak in win_bind_mask
Browse files Browse the repository at this point in the history
Related: #905

Signed-off-by: Yuxuan Shui <yshuiv7@gmail.com>
  • Loading branch information
yshui committed Oct 10, 2022
1 parent 7107241 commit 8a373c3
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/win.c
Original file line number Diff line number Diff line change
Expand Up @@ -350,6 +350,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;
}
Expand Down

0 comments on commit 8a373c3

Please sign in to comment.