summaryrefslogtreecommitdiffstats
path: root/src/gallium/drivers/nouveau/nouveau_buffer.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/gallium/drivers/nouveau/nouveau_buffer.c')
-rw-r--r--src/gallium/drivers/nouveau/nouveau_buffer.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/gallium/drivers/nouveau/nouveau_buffer.c b/src/gallium/drivers/nouveau/nouveau_buffer.c
index d04ac2f9f1c..e83aae0bba5 100644
--- a/src/gallium/drivers/nouveau/nouveau_buffer.c
+++ b/src/gallium/drivers/nouveau/nouveau_buffer.c
@@ -94,6 +94,9 @@ nouveau_buffer_destroy(struct pipe_screen *pscreen,
if (res->data && !(res->status & NOUVEAU_BUFFER_STATUS_USER_MEMORY))
FREE(res->data);
+ nouveau_fence_ref(NULL, &res->fence);
+ nouveau_fence_ref(NULL, &res->fence_wr);
+
FREE(res);
}