projects
/
platform
/
upstream
/
mesa.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
76df7ed
)
i915: Fix memory leak in do_blit_readpixels.
author
Vinson Lee
<vlee@freedesktop.org>
Sat, 28 Sep 2013 05:11:17 +0000
(22:11 -0700)
committer
Vinson Lee
<vlee@freedesktop.org>
Tue, 1 Oct 2013 05:08:48 +0000
(22:08 -0700)
Fixes "Resource leak" defect reported by Coverity.
Signed-off-by: Vinson Lee <vlee@freedesktop.org>
Reviewed-by: Eric Anholt <eric@anholt.net>
src/mesa/drivers/dri/i915/intel_pixel_read.c
patch
|
blob
|
history
diff --git
a/src/mesa/drivers/dri/i915/intel_pixel_read.c
b/src/mesa/drivers/dri/i915/intel_pixel_read.c
index
26eb496
..
8fd1c8d
100644
(file)
--- a/
src/mesa/drivers/dri/i915/intel_pixel_read.c
+++ b/
src/mesa/drivers/dri/i915/intel_pixel_read.c
@@
-148,6
+148,7
@@
do_blit_readpixels(struct gl_context * ctx,
pbo_mt, 0, 0,
0, 0, dst_flip,
width, height, GL_COPY)) {
+ intel_miptree_release(&pbo_mt);
return false;
}