summaryrefslogtreecommitdiffstats
path: root/src/mesa/main/readpix.c
diff options
context:
space:
mode:
authorMatt Turner <mattst88@gmail.com>2015-02-28 11:08:17 -0800
committerMatt Turner <mattst88@gmail.com>2015-03-02 10:24:18 -0800
commit87109acbed9c9b52f33d58ca06d9048d0ac7a215 (patch)
treeaa1be51f8c93f1eb86cd41cd4dc08cf6706d7aec /src/mesa/main/readpix.c
parent2b2fa1865248c6e3b7baec81c4f92774759b201f (diff)
downloadexternal_mesa3d-87109acbed9c9b52f33d58ca06d9048d0ac7a215.zip
external_mesa3d-87109acbed9c9b52f33d58ca06d9048d0ac7a215.tar.gz
external_mesa3d-87109acbed9c9b52f33d58ca06d9048d0ac7a215.tar.bz2
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>
Diffstat (limited to 'src/mesa/main/readpix.c')
-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 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);