summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorChris Wilson <chris@chris-wilson.co.uk>2013-05-25 15:53:11 +0100
committerChris Wilson <chris@chris-wilson.co.uk>2013-05-25 15:54:43 +0100
commit51103d8637ba34a0d5f3507e196f54333aa765bb (patch)
treee178b4af97d5d3d3e033444eb82f029112f10826
parentfce4292ab7216a1c610ffc57aa6763e05b458904 (diff)
sna: Free the released COW reference when uncloning
Reported-by: Jiri Slaby <jirislaby@gmail.com> Reported-by: David Gow <david@ingeniumdigital.com> Bugzilla: https://bugs.freedesktop.org/show_bug.cgi?id=64978 Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
-rw-r--r--src/sna/sna_accel.c2
1 files changed, 2 insertions, 0 deletions
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;
}