OSDN Git Service

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)
committerEmil Velikov <emil.l.velikov@gmail.com>
Wed, 3 Jun 2015 10:52:50 +0000 (11:52 +0100)
commitadee8f1ca5ba636b6ab996b2a05b9516a74e04a5
treec0371fbb776db7db352c0cb4758e2086e4bae293
parent56d13627ebb07cac52401714f11a92be6b2d34e6
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>
(cherry picked from commit 5646f0f18a620292524eebcd77353ff3d3687eb2)
src/glsl/linker.cpp