text: gltex: free atlas during destruction
If we remove an atlas, we have to correctly free its memory. Otherwise, we will loose the memory. Signed-off-by: David Herrmann <dh.herrmann@googlemail.com>
This commit is contained in:
parent
4199d3331e
commit
636c383c68
@ -252,6 +252,7 @@ static void gltex_unset(struct kmscon_text *txt)
|
||||
|
||||
if (gl)
|
||||
gl_tex_free(&atlas->tex, 1);
|
||||
free(atlas);
|
||||
}
|
||||
|
||||
if (gl) {
|
||||
|
Loading…
x
Reference in New Issue
Block a user