projects
/
mesa.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
2b2fa18
)
mesa: Free memory allocated for luminance in readpixels.
author
Matt Turner
<mattst88@gmail.com>
Sat, 28 Feb 2015 19:08:17 +0000
(11:08 -0800)
committer
Matt Turner
<mattst88@gmail.com>
Mon, 2 Mar 2015 18:24:18 +0000
(10:24 -0800)
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>
src/mesa/main/readpix.c
patch
|
blob
|
history
diff --git
a/src/mesa/main/readpix.c
b/src/mesa/main/readpix.c
index 2e4a460c1fab4e961fc8cb0316567a6c2f8e963b..ed0104c9e46c32ef646dc8adb24c73fbd15acc04 100644
(file)
--- 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);