glsl: fix possible memory leak in nir uniform linker
authorTimothy Arceri <tarceri@itsqueeze.com>
Wed, 26 Feb 2020 02:21:20 +0000 (13:21 +1100)
committerMarge Bot <eric+marge@anholt.net>
Fri, 28 Feb 2020 23:48:46 +0000 (23:48 +0000)
commit7dafc3050da4ab240c8ecf4ddcfba2c6192113f5
treeb1d7fbb4a51d742b680aea988687d2ba43cec912
parentcf12faef614ab7cd9996410f1d161558a3853936
glsl: fix possible memory leak in nir uniform linker

Use UniformDataSlots for the context of UniformDataDefaults rather
than UniformStorage as in some cause UniformStorage may be NULL.

Reviewed-by: Alejandro PiƱeiro <apinheiro@igalia.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/3992>
src/compiler/glsl/gl_nir_link_uniforms.c