Commit 46bfcd61 authored by Jose Fonseca's avatar Jose Fonseca Committed by Dave Airlie

softpipe: Free tgsi.image elements on context destruction.

Courtesy of address sanitizer.

[airlied: free buffers as well]
Reviewed-by: default avatarRoland Scheidegger <sroland@vmware.com>
Signed-off-by: default avatarDave Airlie <airlied@redhat.com>
parent 5a3d928e
......@@ -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 );
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment