From: Marcin Slusarz Date: Tue, 6 Sep 2011 14:12:52 +0000 (+0200) Subject: nouveau: fix nouveau_fence leak X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=96054375b1ea98d7827f0d4b567168fa2baeb38e;p=mesa.git nouveau: fix nouveau_fence leak Note: This is a candidate for the 7.11 branch. --- 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); }