mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-01-10 12:30:11 +01:00
llvmpipe: When failing free fs shader too.
This commit is contained in:
parent
388c94195a
commit
b556bb7c44
1 changed files with 1 additions and 0 deletions
|
|
@ -906,6 +906,7 @@ llvmpipe_create_fs_state(struct pipe_context *pipe,
|
|||
shader->draw_data = draw_create_fragment_shader(llvmpipe->draw, templ);
|
||||
if (shader->draw_data == NULL) {
|
||||
FREE((void *) shader->base.tokens);
|
||||
FREE(shader);
|
||||
return NULL;
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue