backend: xrender: don't leak the mask picture in the blur function

This commit is contained in:
Maxim Solovyov
2023-10-17 01:10:27 +03:00
parent 751f30578e
commit a6b4e285f8

View File

@@ -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);