svga: Plug a fence leak
authorThomas Hellstrom <thellstrom@vmware.com>
Mon, 17 Oct 2011 12:24:14 +0000 (14:24 +0200)
committerThomas Hellstrom <thellstrom@vmware.com>
Tue, 18 Oct 2011 08:37:12 +0000 (10:37 +0200)
Signed-off-by: Thomas Hellstrom <thellstrom@vmware.com>
Reviewed-by: Jakob Bornecrantz <jakob@vmware.com>
src/gallium/drivers/svga/svga_context.c

index 91bb60f0b6b7a7434228395219e76fb163cc83e1..9f4f8a47def7d3fded52b4537e4f2a553b34086f 100644 (file)
@@ -239,9 +239,9 @@ void svga_context_flush( struct svga_context *svga,
    }
 
    if(pfence)
-      *pfence = fence;
-   else
-      svgascreen->sws->fence_reference(svgascreen->sws, &fence, NULL);
+      svgascreen->sws->fence_reference(svgascreen->sws, pfence, fence);
+
+   svgascreen->sws->fence_reference(svgascreen->sws, &fence, NULL);
 }