Mesa (9.1): r600g: fix htile buffer leak

Jerome Glisse glisse at kemper.freedesktop.org
Thu Jan 31 19:28:54 UTC 2013


Module: Mesa
Branch: 9.1
Commit: 3b8d4f941f34a5e839c40606074d77822b8ca8c7
URL:    http://cgit.freedesktop.org/mesa/mesa/commit/?id=3b8d4f941f34a5e839c40606074d77822b8ca8c7

Author: Marek Olšák <maraeo at gmail.com>
Date:   Thu Jan 31 15:29:16 2013 +0100

r600g: fix htile buffer leak

NOTE: This is a candidate for the 9.1 branch.

---

 src/gallium/drivers/r600/r600_texture.c |    1 +
 1 files changed, 1 insertions(+), 0 deletions(-)

diff --git a/src/gallium/drivers/r600/r600_texture.c b/src/gallium/drivers/r600/r600_texture.c
index 1d04cc0..85fc887 100644
--- a/src/gallium/drivers/r600/r600_texture.c
+++ b/src/gallium/drivers/r600/r600_texture.c
@@ -270,6 +270,7 @@ static void r600_texture_destroy(struct pipe_screen *screen,
 	if (rtex->flushed_depth_texture)
 		pipe_resource_reference((struct pipe_resource **)&rtex->flushed_depth_texture, NULL);
 
+        pipe_resource_reference((struct pipe_resource**)&rtex->htile, NULL);
 	pb_reference(&resource->buf, NULL);
 	FREE(rtex);
 }




More information about the mesa-commit mailing list