summaryrefslogtreecommitdiff
path: root/libdrm
diff options
context:
space:
mode:
Diffstat (limited to 'libdrm')
-rw-r--r--libdrm/nouveau/nouveau_bo.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/libdrm/nouveau/nouveau_bo.c b/libdrm/nouveau/nouveau_bo.c
index e8232ef2..860efa14 100644
--- a/libdrm/nouveau/nouveau_bo.c
+++ b/libdrm/nouveau/nouveau_bo.c
@@ -413,6 +413,10 @@ nouveau_bo_del_cb(void *priv)
{
struct nouveau_bo_priv *nvbo = priv;
+ if (nvbo->fence)
+ nouveau_fence_ref(NULL, &nvbo->fence);
+ if (nvbo->wr_fence)
+ nouveau_fence_ref(NULL, &nvbo->wr_fence);
nouveau_bo_kfree(nvbo);
free(nvbo);
}