diff options
author | Jonathan Marek <[email protected]> | 2018-06-21 17:06:29 -0400 |
---|---|---|
committer | Rob Clark <[email protected]> | 2018-06-22 08:23:10 -0400 |
commit | dd8553dd9543a27720c39be64692190f36c81683 (patch) | |
tree | 0b29074fdc1b7124db953e76994c579abae2e600 /src/gallium/drivers/freedreno/a2xx | |
parent | 6eeac34cee754740eaf1f97c8218a645ee9285de (diff) |
freedreno: a2xx: fix crash when freeing context
Signed-off-by: Jonathan Marek <[email protected]>
Signed-off-by: Rob Clark <[email protected]>
Diffstat (limited to 'src/gallium/drivers/freedreno/a2xx')
-rw-r--r-- | src/gallium/drivers/freedreno/a2xx/fd2_program.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/gallium/drivers/freedreno/a2xx/fd2_program.c b/src/gallium/drivers/freedreno/a2xx/fd2_program.c index 9a774572514..834a7c7fcd7 100644 --- a/src/gallium/drivers/freedreno/a2xx/fd2_program.c +++ b/src/gallium/drivers/freedreno/a2xx/fd2_program.c @@ -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); |