xf86-video-intel: src/sna/sna_accel.c

Chris Wilson ickle at kemper.freedesktop.org
Sat May 25 07:55:35 PDT 2013


 src/sna/sna_accel.c |    2 ++
 1 file changed, 2 insertions(+)

New commits:
commit 51103d8637ba34a0d5f3507e196f54333aa765bb
Author: Chris Wilson <chris at chris-wilson.co.uk>
Date:   Sat May 25 15:53:11 2013 +0100

    sna: Free the released COW reference when uncloning
    
    Reported-by: Jiri Slaby <jirislaby at gmail.com>
    Reported-by: David Gow <david at ingeniumdigital.com>
    Bugzilla: https://bugs.freedesktop.org/show_bug.cgi?id=64978
    Signed-off-by: Chris Wilson <chris at chris-wilson.co.uk>

diff --git a/src/sna/sna_accel.c b/src/sna/sna_accel.c
index b839194..d8e2746 100644
--- a/src/sna/sna_accel.c
+++ b/src/sna/sna_accel.c
@@ -1644,6 +1644,8 @@ sna_pixmap_undo_cow(struct sna *sna, struct sna_pixmap *priv, unsigned flags)
 			}
 		}
 
+		assert(priv->gpu_bo);
+		kgem_bo_destroy(&sna->kgem, priv->gpu_bo);
 		priv->gpu_bo = bo;
 	}
 


More information about the xorg-commit mailing list