Skip to content

Commit

Permalink
win: fix leaking of the mask image
Browse files Browse the repository at this point in the history
destroy_win_finish doesn't call win_release_images to free the images,
so we need to add a release_mask call there.

Related: yshui#892

Signed-off-by: Yuxuan Shui <yshuiv7@gmail.com>
  • Loading branch information
yshui authored and FT-Labs committed Jan 23, 2023
1 parent 935885d commit 89690c9
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/win.c
Original file line number Diff line number Diff line change
Expand Up @@ -2426,6 +2426,7 @@ static void destroy_win_finish(session_t *ps, struct win *w) {
assert(mw->shadow_image != NULL);
win_release_shadow(ps->backend_data, mw);
}
win_release_mask(ps->backend_data, mw);

// Invalidate reg_ignore of windows below this one
// TODO(yshui) what if next_w is not mapped??
Expand Down

0 comments on commit 89690c9

Please sign in to comment.