Mesa (master): svga: Plug a fence leak
Thomas Hellstrom
thomash at kemper.freedesktop.org
Tue Oct 18 08:37:50 UTC 2011
Module: Mesa
Branch: master
Commit: 6235846cb779bce470bc903f8cfc701bc0343d73
URL: http://cgit.freedesktop.org/mesa/mesa/commit/?id=6235846cb779bce470bc903f8cfc701bc0343d73
Author: Thomas Hellstrom <thellstrom at vmware.com>
Date: Mon Oct 17 14:24:14 2011 +0200
svga: Plug a fence leak
Signed-off-by: Thomas Hellstrom <thellstrom at vmware.com>
Reviewed-by: Jakob Bornecrantz <jakob at 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);
}
More information about the mesa-commit
mailing list