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:

committed by
Dave Airlie

parent
5a3d928e2c
commit
46bfcd61f5
@@ -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 );
|
||||
|
Reference in New Issue
Block a user