summaryrefslogtreecommitdiffstats
path: root/src/gallium/drivers/nouveau/nouveau_buffer.c
diff options
context:
space:
mode:
authorChristoph Bumiller <[email protected]>2012-05-28 18:01:15 +0200
committerChristoph Bumiller <[email protected]>2012-05-29 17:00:20 +0200
commit94a25b216bb7bf1f55e657d93d84f6de3f5e7ed4 (patch)
tree67cc1b92c7550fd60d00bda895a790296c9b2508 /src/gallium/drivers/nouveau/nouveau_buffer.c
parent1a21e36b6818991ced32d0e3d1acc1fea0d936ce (diff)
nouveau: unreference fences on resource destruction
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);
}