diff options
author | Thomas Hellstrom <[email protected]> | 2011-10-17 14:24:14 +0200 |
---|---|---|
committer | Thomas Hellstrom <[email protected]> | 2011-10-18 10:37:12 +0200 |
commit | 6235846cb779bce470bc903f8cfc701bc0343d73 (patch) | |
tree | 34221c5f116eb0ec1cf8df4f0a1d5f4208ec9394 /src | |
parent | 0b3842edb1a0bc1a2163571ef476e080f7c40b0f (diff) |
svga: Plug a fence leak
Signed-off-by: Thomas Hellstrom <[email protected]>
Reviewed-by: Jakob Bornecrantz <[email protected]>
Diffstat (limited to 'src')
-rw-r--r-- | 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 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); } |