mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-02-03 02:10:24 +01:00
softpipe: Free tgsi.image elements on context destruction.
Courtesy of address sanitizer. [airlied: free buffers as well] Reviewed-by: Roland Scheidegger <sroland@vmware.com> Signed-off-by: Dave Airlie <airlied@redhat.com>
This commit is contained in:
parent
5a3d928e2c
commit
46bfcd61f5
1 changed files with 2 additions and 0 deletions
|
|
@ -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 );
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue