mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2025-12-22 20:00:10 +01:00
freedreno: a2xx: fix crash when freeing context
Signed-off-by: Jonathan Marek <jonathan@marek.ca> Signed-off-by: Rob Clark <robdclark@gmail.com>
This commit is contained in:
parent
6eeac34cee
commit
dd8553dd95
1 changed files with 2 additions and 0 deletions
|
|
@ -54,6 +54,8 @@ create_shader(enum shader_t type)
|
|||
static void
|
||||
delete_shader(struct fd2_shader_stateobj *so)
|
||||
{
|
||||
if (!so)
|
||||
return;
|
||||
ir2_shader_destroy(so->ir);
|
||||
free(so->tokens);
|
||||
free(so->bin);
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue