summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorMatt Turner <mattst88@gmail.com>2015-02-28 11:08:17 -0800
committerEmil Velikov <emil.l.velikov@gmail.com>2015-03-07 17:20:46 +0000
commit4c45e239385473da58d79100b0af25bd0b9edf9c (patch)
treef944508cdb670f05a6d9409841129d4ce1ac9d27 /src
parent9267820be63fedade5ab4087c00e2239c0129cbe (diff)
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> (cherry picked from commit 87109acbed9c9b52f33d58ca06d9048d0ac7a215)
Diffstat (limited to 'src')
-rw-r--r--src/mesa/main/readpix.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/mesa/main/readpix.c b/src/mesa/main/readpix.c
index ca4b9431bbe..d1fe36dff2d 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);