From: Vinson Lee Date: Sat, 28 Sep 2013 05:11:17 +0000 (-0700) Subject: i915: Fix memory leak in do_blit_readpixels. X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=eb0a57acaa7026b3212742a30f4ada3271d95616;p=mesa.git i915: Fix memory leak in do_blit_readpixels. Fixes "Resource leak" defect reported by Coverity. Signed-off-by: Vinson Lee Reviewed-by: Eric Anholt --- 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; }