aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorVinson Lee <[email protected]>2013-09-27 22:11:17 -0700
committerVinson Lee <[email protected]>2013-09-30 22:08:48 -0700
commiteb0a57acaa7026b3212742a30f4ada3271d95616 (patch)
treea54079e63dc87b5c79649be5e73bb5f428fe0990 /src
parent76df7edacfd684f97b38032773a6c56919970b15 (diff)
i915: Fix memory leak in do_blit_readpixels.
Fixes "Resource leak" defect reported by Coverity. Signed-off-by: Vinson Lee <[email protected]> Reviewed-by: Eric Anholt <[email protected]>
Diffstat (limited to 'src')
-rw-r--r--src/mesa/drivers/dri/i915/intel_pixel_read.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/mesa/drivers/dri/i915/intel_pixel_read.c b/src/mesa/drivers/dri/i915/intel_pixel_read.c
index 26eb4965b8d..8fd1c8da587 100644
--- 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;
}