From 51103d8637ba34a0d5f3507e196f54333aa765bb Mon Sep 17 00:00:00 2001 From: Chris Wilson Date: Sat, 25 May 2013 15:53:11 +0100 Subject: sna: Free the released COW reference when uncloning Reported-by: Jiri Slaby Reported-by: David Gow Bugzilla: https://bugs.freedesktop.org/show_bug.cgi?id=64978 Signed-off-by: Chris Wilson --- src/sna/sna_accel.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/sna/sna_accel.c b/src/sna/sna_accel.c index b8391943..d8e2746a 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; } -- cgit v1.2.3