[Mesa-dev] [PATCH] mesa: Free memory allocated for luminance in readpixels.

Emil Velikov emil.l.velikov at gmail.com
Tue Mar 3 18:02:00 PST 2015


On 28 February 2015 at 19:10, Matt Turner <mattst88 at gmail.com> wrote:
> ---
>  src/mesa/main/readpix.c | 1 +
>  1 file changed, 1 insertion(+)
>
> diff --git a/src/mesa/main/readpix.c b/src/mesa/main/readpix.c
> index 2e4a460..ed0104c 100644
> --- a/src/mesa/main/readpix.c
> +++ b/src/mesa/main/readpix.c
> @@ -594,6 +594,7 @@ read_rgba_pixels( struct gl_context *ctx,
>        _mesa_format_convert(dst, dst_format, dst_stride,
>                             luminance, luminance_format, luminance_stride,
>                             width, height, NULL);
> +      free(luminance);
>     } else {
>        _mesa_pack_luminance_from_rgba_integer(width * height, src, !src_is_uint,
>                                               dst, format, type);
> --
Hi Matt,

This commit does not apply cleanly for 10.4. I'm suspecting that it's
not applicable for that branch, but if you feel otherwise pleasesend
over a backport.

Thanks
Emil


More information about the mesa-dev mailing list