From: Alyssa Rosenzweig Date: Mon, 15 Jul 2019 18:37:42 +0000 (-0700) Subject: panfrost: Don't leak the blend CSO hash table X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=fea953e6c2519560371b29303e0bd014963c14d9;p=mesa.git panfrost: Don't leak the blend CSO hash table Signed-off-by: Alyssa Rosenzweig --- diff --git a/src/gallium/drivers/panfrost/pan_blend_cso.c b/src/gallium/drivers/panfrost/pan_blend_cso.c index cf26d7366ee..f2dafe062ce 100644 --- a/src/gallium/drivers/panfrost/pan_blend_cso.c +++ b/src/gallium/drivers/panfrost/pan_blend_cso.c @@ -124,7 +124,7 @@ panfrost_create_blend_state(struct pipe_context *pipe, /* Regardless if that works, we also need to initialize * the blend shaders */ - rt->shaders = _mesa_hash_table_u64_create(NULL); + rt->shaders = _mesa_hash_table_u64_create(so); } return so; @@ -152,8 +152,7 @@ static void panfrost_delete_blend_state(struct pipe_context *pipe, void *blend) { - /* TODO: leaks internally? */ - + /* TODO: Free shader binary? */ ralloc_free(blend); }