From e62971a0c3404386ed6ccef080921e4f8ce89396 Mon Sep 17 00:00:00 2001 From: Yuxuan Shui Date: Sun, 7 Jul 2019 19:09:15 +0100 Subject: [PATCH] gl common: fix memory leak Signed-off-by: Yuxuan Shui --- src/backend/gl/gl_common.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/backend/gl/gl_common.c b/src/backend/gl/gl_common.c index 613a0df..9d6ce50 100644 --- a/src/backend/gl/gl_common.c +++ b/src/backend/gl/gl_common.c @@ -459,6 +459,7 @@ bool gl_blur(backend_t *base, double opacity, void *ctx, const region_t *reg_blu x_rect_to_coords(nrects_resized, rects_resized, extent_resized->x1, extent_resized->y2, bctx->texture_width, bctx->texture_height, bctx->texture_height, false, coord_resized, indices_resized); + pixman_region32_fini(®_blur_resized); GLuint vao[2]; glGenVertexArrays(2, vao); @@ -565,6 +566,8 @@ end: free(indices); free(coord); + free(indices_resized); + free(coord_resized); gl_check_err();