From 53730ab32cd539c2ccce6027f7b873ed65b675cd Mon Sep 17 00:00:00 2001 From: Yevhenii Kolesnikov Date: Tue, 23 Jul 2019 18:35:29 +0300 Subject: [PATCH] main: Free memory allocated for gl_bitmap_atlas structure MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit Structure itself wasn't freed during context tear-down, causing a memory leak on iris. Signed-off-by: Yevhenii Kolesnikov Reviewed-by: Marek Olšák Signed-off-by: Marek Olšák --- src/mesa/main/dlist.c | 1 + 1 file changed, 1 insertion(+) diff --git a/src/mesa/main/dlist.c b/src/mesa/main/dlist.c index a4dcaa24f28..7dd39a1bafa 100644 --- a/src/mesa/main/dlist.c +++ b/src/mesa/main/dlist.c @@ -759,6 +759,7 @@ _mesa_delete_bitmap_atlas(struct gl_context *ctx, struct gl_bitmap_atlas *atlas) ctx->Driver.DeleteTexture(ctx, atlas->texObj); } free(atlas->glyphs); + free(atlas); } -- 2.30.2