From 94a25b216bb7bf1f55e657d93d84f6de3f5e7ed4 Mon Sep 17 00:00:00 2001 From: Christoph Bumiller Date: Mon, 28 May 2012 18:01:15 +0200 Subject: nouveau: unreference fences on resource destruction --- src/gallium/drivers/nouveau/nouveau_buffer.c | 3 +++ 1 file changed, 3 insertions(+) (limited to 'src/gallium/drivers/nouveau') 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); } -- cgit v1.2.3