From: Tilman Sauerbeck Date: Mon, 27 Sep 2010 06:32:50 +0000 (+0200) Subject: r600g: Fixed two texture surface leaks in r600_blit_uncompress_depth(). X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=4c6344f569c5417b0ea804f6f8216a2b40321480;p=mesa.git r600g: Fixed two texture surface leaks in r600_blit_uncompress_depth(). Signed-off-by: Tilman Sauerbeck --- diff --git a/src/gallium/drivers/r600/r600_blit.c b/src/gallium/drivers/r600/r600_blit.c index 52326534e6e..357776c55ef 100644 --- a/src/gallium/drivers/r600/r600_blit.c +++ b/src/gallium/drivers/r600/r600_blit.c @@ -200,6 +200,9 @@ int r600_blit_uncompress_depth(struct pipe_context *ctx, struct r600_resource_te util_blitter_custom_depth_stencil(rctx->blitter, zsurf, cbsurf, rctx->custom_dsa_flush, depth); + pipe_surface_reference(&zsurf, NULL); + pipe_surface_reference(&cbsurf, NULL); + /* resume queries */ r600_queries_resume(ctx); return 0;