nouveau: fix nouveau_fence leak
authorMarcin Slusarz <marcin.slusarz@gmail.com>
Tue, 6 Sep 2011 14:12:52 +0000 (16:12 +0200)
committerMarcin Slusarz <marcin.slusarz@gmail.com>
Thu, 8 Sep 2011 21:00:31 +0000 (23:00 +0200)
Note: This is a candidate for the 7.11 branch.

src/gallium/drivers/nouveau/nouveau_fence.c

index d8f59dce9ed5e782a5a59a2615052af22ef48826..ea2038cc7e241291cbc8e8112c8adf35d831910e 100644 (file)
@@ -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);
 }