diff options
author | Dave Airlie <airlied@redhat.com> | 2013-12-13 11:33:46 +1000 |
---|---|---|
committer | Zhigang Gong <zhigang.gong@gmail.com> | 2013-12-16 22:22:01 +0800 |
commit | 75ea1b30117450ff1b2b34bc14acbcf4f466694d (patch) | |
tree | d03b2a45c7c578b1a32daf8f93ed512e759b5b29 | |
parent | 89a62fb9363da243f55917eb4f01f441dc4ef8df (diff) |
glamor: fix leak in xv code.
This loop needed to go one higher, not sure if this fixes the leak
MrCooper was seeing on irc, but it fixes a leak.
Signed-off-by: Dave Airlie <airlied@redhat.com>
Reviewed-by: Michel Dänzer <michel.daenzer@amd.com>
Reviewed-by: Zhigang Gong <zhigang.gong@linux.intel.com>
-rw-r--r-- | src/glamor_xv.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/glamor_xv.c b/src/glamor_xv.c index 8f12c1f..a89b4cd 100644 --- a/src/glamor_xv.c +++ b/src/glamor_xv.c @@ -490,7 +490,7 @@ static int glamor_xv_put_image(ScrnInfoPtr pScrn, if (!port_priv->src_pix[0] || (width != port_priv->src_pix_w || height != port_priv->src_pix_h)) { int i; - for (i = 0; i < 2; i++) + for (i = 0; i < 3; i++) if (port_priv->src_pix[i]) glamor_destroy_pixmap(port_priv->src_pix[i]); |