summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--src/sna/kgem.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/src/sna/kgem.c b/src/sna/kgem.c
index a6610414..a95ba653 100644
--- a/src/sna/kgem.c
+++ b/src/sna/kgem.c
@@ -796,8 +796,7 @@ bool kgem_retire(struct kgem *kgem)
retired = true;
} else {
kgem->need_purge = 1;
- gem_close(kgem->fd, rq->bo->handle);
- free(rq->bo);
+ kgem_bo_free(kgem, rq->bo);
}
list_del(&rq->list);