[Mesa-dev] [PATCH 06/10] radeonsi: fix a GS copy shader leak

Marek Olšák maraeo at gmail.com
Sat Oct 10 18:11:34 PDT 2015


From: Marek Olšák <marek.olsak at amd.com>

Cc: mesa-stable at lists.freedesktop.org
---
 src/gallium/drivers/radeonsi/si_shader.c | 4 +++-
 1 file changed, 3 insertions(+), 1 deletion(-)

diff --git a/src/gallium/drivers/radeonsi/si_shader.c b/src/gallium/drivers/radeonsi/si_shader.c
index 0e98915..012d708 100644
--- a/src/gallium/drivers/radeonsi/si_shader.c
+++ b/src/gallium/drivers/radeonsi/si_shader.c
@@ -4192,8 +4192,10 @@ out:
 
 void si_shader_destroy(struct si_shader *shader)
 {
-	if (shader->gs_copy_shader)
+	if (shader->gs_copy_shader) {
 		si_shader_destroy(shader->gs_copy_shader);
+		FREE(shader->gs_copy_shader);
+	}
 
 	if (shader->scratch_bo)
 		r600_resource_reference(&shader->scratch_bo, NULL);
-- 
2.1.4



More information about the mesa-dev mailing list