From a6b4e285f833c13b217c0e30ca71a903ec2464b5 Mon Sep 17 00:00:00 2001 From: Maxim Solovyov Date: Tue, 17 Oct 2023 01:10:27 +0300 Subject: [PATCH] backend: xrender: don't leak the mask picture in the blur function --- src/backend/xrender/xrender.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/backend/xrender/xrender.c b/src/backend/xrender/xrender.c index c359fc4efa..97268b1716 100644 --- a/src/backend/xrender/xrender.c +++ b/src/backend/xrender/xrender.c @@ -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(®_op);