From: Marek Olšák Date: Thu, 8 Oct 2015 22:54:17 +0000 (+0200) Subject: radeonsi: fix a GS copy shader leak X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=aa060e276c203baf4691d4a4722accd5bdbb8526;p=mesa.git radeonsi: fix a GS copy shader leak Cc: mesa-stable@lists.freedesktop.org Reviewed-by: Michel Dänzer --- diff --git a/src/gallium/drivers/radeonsi/si_shader.c b/src/gallium/drivers/radeonsi/si_shader.c index 085794ba3b3..49ab9404b81 100644 --- a/src/gallium/drivers/radeonsi/si_shader.c +++ b/src/gallium/drivers/radeonsi/si_shader.c @@ -4193,8 +4193,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);