Skip to content

Commit

Permalink
backend: xrender: don't leak the mask picture in the blur function
Browse files Browse the repository at this point in the history
  • Loading branch information
absolutelynothelix committed Oct 16, 2023
1 parent 751f305 commit a6b4e28
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/backend/xrender/xrender.c
Original file line number Diff line number Diff line change
Expand Up @@ -497,6 +497,9 @@ static bool blur(backend_t *backend_data, double opacity, void *ctx_, void *mask
to_i16_checked(extent_resized->y1), width_resized, height_resized);
}

if (mask_allocated) {
x_free_picture(c, mask_pict);
}
x_free_picture(c, tmp_picture[0]);
x_free_picture(c, tmp_picture[1]);
pixman_region32_fini(&reg_op);
Expand Down

0 comments on commit a6b4e28

Please sign in to comment.