From: Thomas Hellstrom Date: Mon, 17 Oct 2011 12:24:14 +0000 (+0200) Subject: svga: Plug a fence leak X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=6235846cb779bce470bc903f8cfc701bc0343d73;p=mesa.git svga: Plug a fence leak Signed-off-by: Thomas Hellstrom Reviewed-by: Jakob Bornecrantz --- diff --git a/src/gallium/drivers/svga/svga_context.c b/src/gallium/drivers/svga/svga_context.c index 91bb60f0b6b..9f4f8a47def 100644 --- a/src/gallium/drivers/svga/svga_context.c +++ b/src/gallium/drivers/svga/svga_context.c @@ -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); }