mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-05-05 07:28:11 +02:00
mesa: Free memory allocated for luminance in readpixels.
Cc: "10.4, 10.5" <mesa-stable@lists.freedesktop.org> Reviewed-by: Brian Paul <brianp@vmware.com> Reviewed-by: Iago Toral Quiroga <itoral@igalia.com>
This commit is contained in:
parent
2b2fa18652
commit
87109acbed
1 changed files with 1 additions and 0 deletions
|
|
@ -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);
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue