gl_common: fix memory leak in _gl_fill

Signed-off-by: Yuxuan Shui <yshuiv7@gmail.com>
This commit is contained in:
Yuxuan Shui 2019-07-26 03:53:24 +01:00
parent 4772103334
commit 0109fe181e
No known key found for this signature in database
GPG Key ID: 37C999F617EA1A47
1 changed files with 2 additions and 0 deletions

View File

@ -719,6 +719,8 @@ static void _gl_fill(backend_t *base, struct color c, const region_t *clip, GLui
glDeleteVertexArrays(1, &vao); glDeleteVertexArrays(1, &vao);
glDeleteBuffers(2, bo); glDeleteBuffers(2, bo);
free(indices);
free(coord);
} }
void gl_fill(backend_t *base, struct color c, const region_t *clip) { void gl_fill(backend_t *base, struct color c, const region_t *clip) {