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:
David Herrmann 2012-12-02 13:40:53 +01:00
parent 4199d3331e
commit 636c383c68

View File

@ -252,6 +252,7 @@ static void gltex_unset(struct kmscon_text *txt)
if (gl)
gl_tex_free(&atlas->tex, 1);
free(atlas);
}
if (gl) {