diff options
author | Marcin Slusarz <marcin.slusarz@gmail.com> | 2011-09-06 16:12:52 +0200 |
---|---|---|
committer | Marcin Slusarz <marcin.slusarz@gmail.com> | 2011-09-08 23:00:31 +0200 |
commit | 96054375b1ea98d7827f0d4b567168fa2baeb38e (patch) | |
tree | 81878759d0916b268ef8b63b247b66a384264d3e /src/gallium | |
parent | d8035fe173d87b319d85fcd64192a6d4fb5555e5 (diff) | |
download | external_mesa3d-96054375b1ea98d7827f0d4b567168fa2baeb38e.zip external_mesa3d-96054375b1ea98d7827f0d4b567168fa2baeb38e.tar.gz external_mesa3d-96054375b1ea98d7827f0d4b567168fa2baeb38e.tar.bz2 |
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.c | 2 |
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 d8f59dc..ea2038c 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); } |