From 636c383c68ab79964b80016a624a03b2395a25a2 Mon Sep 17 00:00:00 2001 From: David Herrmann Date: Sun, 2 Dec 2012 13:40:53 +0100 Subject: [PATCH] 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 --- src/text_gltex.c | 1 + 1 file changed, 1 insertion(+) diff --git a/src/text_gltex.c b/src/text_gltex.c index 74a943e..74a36f0 100644 --- a/src/text_gltex.c +++ b/src/text_gltex.c @@ -252,6 +252,7 @@ static void gltex_unset(struct kmscon_text *txt) if (gl) gl_tex_free(&atlas->tex, 1); + free(atlas); } if (gl) {