diff options
author | Matt Turner <[email protected]> | 2015-02-28 11:08:17 -0800 |
---|---|---|
committer | Emil Velikov <[email protected]> | 2015-03-07 17:20:46 +0000 |
commit | 4c45e239385473da58d79100b0af25bd0b9edf9c (patch) | |
tree | f944508cdb670f05a6d9409841129d4ce1ac9d27 | |
parent | 9267820be63fedade5ab4087c00e2239c0129cbe (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]>
(cherry picked from commit 87109acbed9c9b52f33d58ca06d9048d0ac7a215)
-rw-r--r-- | src/mesa/main/readpix.c | 1 |
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); |