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

View File

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