[Nouveau] [PATCH] nouveau: fix nouveau_fence leak

Marcin Slusarz marcin.slusarz at gmail.com
Tue Sep 6 16:08:35 PDT 2011


Note: This is a candidate for the 7.11 branch.
---
 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);
 }
-- 
1.7.6.1




More information about the Nouveau mailing list