main: Free memory allocated for gl_bitmap_atlas structure
authorYevhenii Kolesnikov <yevhenii.kolesnikov@globallogic.com>
Tue, 23 Jul 2019 15:35:29 +0000 (18:35 +0300)
committerMarek Olšák <marek.olsak@amd.com>
Wed, 24 Jul 2019 19:31:26 +0000 (15:31 -0400)
Structure itself wasn't freed during context tear-down, causing a
memory leak on iris.

Signed-off-by: Yevhenii Kolesnikov <yevhenii.kolesnikov@globallogic.com>
Reviewed-by: Marek Olšák <marek.olsak@amd.com>
Signed-off-by: Marek Olšák <marek.olsak@amd.com>
src/mesa/main/dlist.c

index a4dcaa24f28677b11e6f44ed1c171edfd3016ee5..7dd39a1bafa11a0ef506f7dceeb8e53fbcb2533a 100644 (file)
@@ -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);
 }