From: Jose Fonseca Date: Tue, 12 Apr 2016 16:03:52 +0000 (+0100) Subject: softpipe: Free tgsi.image elements on context destruction. X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=46bfcd61f5ca81fc7e19f0d74ee9fa70f16e9df7;p=mesa.git softpipe: Free tgsi.image elements on context destruction. Courtesy of address sanitizer. [airlied: free buffers as well] Reviewed-by: Roland Scheidegger Signed-off-by: Dave Airlie --- diff --git a/src/gallium/drivers/softpipe/sp_context.c b/src/gallium/drivers/softpipe/sp_context.c index f66fea2d5d5..0342fc6f8cd 100644 --- a/src/gallium/drivers/softpipe/sp_context.c +++ b/src/gallium/drivers/softpipe/sp_context.c @@ -117,6 +117,8 @@ softpipe_destroy( struct pipe_context *pipe ) for (i = 0; i < PIPE_SHADER_TYPES; i++) { FREE(softpipe->tgsi.sampler[i]); + FREE(softpipe->tgsi.image[i]); + FREE(softpipe->tgsi.buffer[i]); } FREE( softpipe );