gl common: fix memory leak

Signed-off-by: Yuxuan Shui <yshuiv7@gmail.com>
This commit is contained in:
Yuxuan Shui 2019-07-07 19:09:15 +01:00
parent 182a207afd
commit e62971a0c3
No known key found for this signature in database
GPG Key ID: 37C999F617EA1A47
1 changed files with 3 additions and 0 deletions

View File

@ -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(&reg_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();