diff options
author | Chris Wilson <chris@chris-wilson.co.uk> | 2013-05-25 15:53:11 +0100 |
---|---|---|
committer | Chris Wilson <chris@chris-wilson.co.uk> | 2013-05-25 15:54:43 +0100 |
commit | 51103d8637ba34a0d5f3507e196f54333aa765bb (patch) | |
tree | e178b4af97d5d3d3e033444eb82f029112f10826 | |
parent | fce4292ab7216a1c610ffc57aa6763e05b458904 (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.c | 2 |
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; } |