gl_common: fix memory leak in _gl_fill
Signed-off-by: Yuxuan Shui <yshuiv7@gmail.com>
This commit is contained in:
parent
4772103334
commit
0109fe181e
|
@ -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) {
|
||||
|
|
Loading…
Reference in New Issue