diff options
author | Jose Fonseca <[email protected]> | 2016-04-12 17:03:52 +0100 |
---|---|---|
committer | Dave Airlie <[email protected]> | 2016-04-13 13:21:37 +1000 |
commit | 46bfcd61f5ca81fc7e19f0d74ee9fa70f16e9df7 (patch) | |
tree | 8cc92e385c2e476fa3ce9ce470a85ddec537a175 | |
parent | 5a3d928e2cd8eeb4776c732cab5c0fce9d593ea2 (diff) |
softpipe: Free tgsi.image elements on context destruction.
Courtesy of address sanitizer.
[airlied: free buffers as well]
Reviewed-by: Roland Scheidegger <[email protected]>
Signed-off-by: Dave Airlie <[email protected]>
-rw-r--r-- | src/gallium/drivers/softpipe/sp_context.c | 2 |
1 files changed, 2 insertions, 0 deletions
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 ); |