mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2025-12-20 05:10:11 +01:00
r300: fix contant remap table leak
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/36447>
This commit is contained in:
parent
16ffa0a490
commit
2cca7d5d74
1 changed files with 1 additions and 2 deletions
|
|
@ -1165,11 +1165,10 @@ static void r300_delete_fs_state(struct pipe_context* pipe, void* shader)
|
|||
struct r300_fragment_shader* fs = (struct r300_fragment_shader*)shader;
|
||||
struct r300_fragment_shader_code *tmp, *ptr = fs->first;
|
||||
|
||||
free(fs->shader->code.constants_remap_table);
|
||||
|
||||
while (ptr) {
|
||||
tmp = ptr;
|
||||
ptr = ptr->next;
|
||||
FREE(tmp->code.constants_remap_table);
|
||||
rc_constants_destroy(&tmp->code.constants);
|
||||
FREE(tmp->cb_code);
|
||||
free(tmp->error);
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue