aboutsummaryrefslogtreecommitdiffstats
path: root/src/gallium
diff options
context:
space:
mode:
authorMarcin Slusarz <[email protected]>2011-09-06 16:12:52 +0200
committerMarcin Slusarz <[email protected]>2011-09-08 23:00:31 +0200
commit96054375b1ea98d7827f0d4b567168fa2baeb38e (patch)
tree81878759d0916b268ef8b63b247b66a384264d3e /src/gallium
parentd8035fe173d87b319d85fcd64192a6d4fb5555e5 (diff)
nouveau: fix nouveau_fence leak
Note: This is a candidate for the 7.11 branch.
Diffstat (limited to 'src/gallium')
-rw-r--r--src/gallium/drivers/nouveau/nouveau_fence.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/gallium/drivers/nouveau/nouveau_fence.c b/src/gallium/drivers/nouveau/nouveau_fence.c
index d8f59dce9ed..ea2038cc7e2 100644
--- a/src/gallium/drivers/nouveau/nouveau_fence.c
+++ b/src/gallium/drivers/nouveau/nouveau_fence.c
@@ -219,5 +219,7 @@ nouveau_fence_next(struct nouveau_screen *screen)
if (screen->fence.current->state < NOUVEAU_FENCE_STATE_EMITTED)
nouveau_fence_emit(screen->fence.current);
+ nouveau_fence_ref(NULL, &screen->fence.current);
+
nouveau_fence_new(screen, &screen->fence.current, FALSE);
}