meta: leak of shader program when decompressing tex-images
authorSergii Romantsov <sergii.romantsov@globallogic.com>
Thu, 18 Jul 2019 12:43:59 +0000 (15:43 +0300)
committerDanylo Piliaiev <danylo.piliaiev@gmail.com>
Wed, 9 Oct 2019 10:49:08 +0000 (10:49 +0000)
CC: Kenneth Graunke <kenneth@whitecape.org>
Reviewed-by: Lionel Landwerlin <lionel.g.landwerlin@intel.com>
Signed-off-by: Sergii Romantsov <sergii.romantsov@globallogic.com>
src/mesa/drivers/common/meta.c

index 65362935320d320fdea94c400cd44cdd415d0d24..8010618af7cec353b0f8be5a4320bae546d13a23 100644 (file)
@@ -2993,6 +2993,7 @@ meta_decompress_cleanup(struct gl_context *ctx,
    }
 
    _mesa_reference_sampler_object(ctx, &decompress->samp_obj, NULL);
+   _mesa_meta_blit_shader_table_cleanup(ctx, &decompress->shaders);
 
    memset(decompress, 0, sizeof(*decompress));
 }