Module: Mesa Branch: master Commit: 6235846cb779bce470bc903f8cfc701bc0343d73 URL: http://cgit.freedesktop.org/mesa/mesa/commit/?id=6235846cb779bce470bc903f8cfc701bc0343d73
Author: Thomas Hellstrom <thellst...@vmware.com> Date: Mon Oct 17 14:24:14 2011 +0200 svga: Plug a fence leak Signed-off-by: Thomas Hellstrom <thellst...@vmware.com> Reviewed-by: Jakob Bornecrantz <ja...@vmware.com> --- src/gallium/drivers/svga/svga_context.c | 6 +++--- 1 files changed, 3 insertions(+), 3 deletions(-) diff --git a/src/gallium/drivers/svga/svga_context.c b/src/gallium/drivers/svga/svga_context.c index 91bb60f..9f4f8a4 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); } _______________________________________________ mesa-commit mailing list mesa-commit@lists.freedesktop.org http://lists.freedesktop.org/mailman/listinfo/mesa-commit