Commit 6a73ddfc authored by Marc-André Lureau's avatar Marc-André Lureau Committed by Dave Airlie

renderer: fix some vrend_sub_context leaks

Fix leaks found thanks to AddressSanitizer.
Signed-off-by: default avatarMarc-André Lureau <marcandre.lureau@redhat.com>
parent 0cb1bd0f
......@@ -3788,6 +3788,10 @@ static void vrend_destroy_sub_context(struct vrend_sub_context *sub)
vrend_shader_state_reference(&sub->shaders[PIPE_SHADER_GEOMETRY], NULL);
vrend_free_programs(sub);
for (i = 0; i < PIPE_SHADER_TYPES; i++) {
free(sub->consts[i].consts);
sub->consts[i].consts = NULL;
}
vrend_object_fini_ctx_table(sub->object_hash);
vrend_clicbs->destroy_gl_context(sub->gl_context);
......
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