From: Yevhenii Kolesnikov Date: Tue, 23 Jul 2019 15:35:29 +0000 (+0300) Subject: main: Free memory allocated for gl_bitmap_atlas structure X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=53730ab32cd539c2ccce6027f7b873ed65b675cd;p=mesa.git main: Free memory allocated for gl_bitmap_atlas structure 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 --- 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); }