Reviewed-by: Vasily Khoruzhick <anarsoul@gmail.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/10221>
if (state) {
struct hash_entry *he = _mesa_hash_table_search(&tr_ctx->blend_states, state);
if (he) {
- free(he->data);
+ ralloc_free(he->data);
_mesa_hash_table_remove(&tr_ctx->blend_states, he);
}
}
if (state) {
struct hash_entry *he = _mesa_hash_table_search(&tr_ctx->rasterizer_states, state);
if (he) {
- free(he->data);
+ ralloc_free(he->data);
_mesa_hash_table_remove(&tr_ctx->rasterizer_states, he);
}
}
if (state) {
struct hash_entry *he = _mesa_hash_table_search(&tr_ctx->depth_stencil_alpha_states, state);
if (he) {
- free(he->data);
+ ralloc_free(he->data);
_mesa_hash_table_remove(&tr_ctx->depth_stencil_alpha_states, he);
}
}