diff options
-rw-r--r-- | src/gallium/state_trackers/vega/shaders_cache.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/src/gallium/state_trackers/vega/shaders_cache.c b/src/gallium/state_trackers/vega/shaders_cache.c index eceae54051e..c1082ca3673 100644 --- a/src/gallium/state_trackers/vega/shaders_cache.c +++ b/src/gallium/state_trackers/vega/shaders_cache.c @@ -225,8 +225,10 @@ combine_shaders(const struct shader_asm_info *shaders[SHADER_STAGES], int num_sh ureg_END(ureg); shader->tokens = ureg_finalize(ureg); - if(!shader->tokens) + if (!shader->tokens) { + ureg_destroy(ureg); return NULL; + } p = pipe->create_fs_state(pipe, shader); |