glsl: Add missing null check in push_back()
authorJuha-Pekka Heikkila <juhapekka.heikkila@gmail.com>
Wed, 7 May 2014 09:38:07 +0000 (12:38 +0300)
committerVille Syrjälä <ville.syrjala@linux.intel.com>
Thu, 26 Jun 2014 12:37:14 +0000 (15:37 +0300)
commit568c545b7ee732f32656f06a953af5a0887ff6b6
tree40d9fe3e03bae33a858e87a8c9c2bdab2893e3b7
parent088da3720f12579c14b1f0edd6e6df6ff8b74571
glsl: Add missing null check in push_back()

Report memory error on realloc failure and don't leak any memory.

Signed-off-by: Juha-Pekka Heikkila <juhapekka.heikkila@gmail.com>
Reviewed-by: Ian Romanick <ian.d.romanick@intel.com>
src/glsl/link_atomics.cpp