summaryrefslogtreecommitdiffstats
path: root/src/mesa/main
diff options
context:
space:
mode:
authorMatt Turner <[email protected]>2015-02-28 11:08:17 -0800
committerMatt Turner <[email protected]>2015-03-02 10:24:18 -0800
commit87109acbed9c9b52f33d58ca06d9048d0ac7a215 (patch)
treeaa1be51f8c93f1eb86cd41cd4dc08cf6706d7aec /src/mesa/main
parent2b2fa1865248c6e3b7baec81c4f92774759b201f (diff)
mesa: Free memory allocated for luminance in readpixels.
Cc: "10.4, 10.5" <[email protected]> Reviewed-by: Brian Paul <[email protected]> Reviewed-by: Iago Toral Quiroga <[email protected]>
Diffstat (limited to 'src/mesa/main')
-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 2e4a460c1fa..ed0104c9e46 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);