glsl: avoid leaking linked gl_shader when there's a late linker error
authorIlia Mirkin <imirkin@alum.mit.edu>
Sun, 17 May 2015 21:56:44 +0000 (17:56 -0400)
committerIlia Mirkin <imirkin@alum.mit.edu>
Mon, 25 May 2015 20:52:11 +0000 (16:52 -0400)
commit5646f0f18a620292524eebcd77353ff3d3687eb2
treeb3618998e360ae9b0b536865a28ab554c9a9a5eb
parent6a111e54d7578abee6bce4a75ce1399ed369ab5f
glsl: avoid leaking linked gl_shader when there's a late linker error

This makes piglit mixing-clip-distance-and-clip-vertex-disallowed have 0
definitely lost blocks with valgrind. (Same non-0 number of possibly
lost blocks though.)

Signed-off-by: Ilia Mirkin <imirkin@alum.mit.edu>
Reviewed-by: Tobias Klausmann <tobias.johannes.klausmann@mni.thm.de>
Cc: "10.5 10.6" <mesa-stable@lists.freedesktop.org>
src/glsl/linker.cpp