OSDN Git Service

glsl: Fix leak of LinkedTransformFeedback.Varyings.
authorEric Anholt <eric@anholt.net>
Thu, 12 Jan 2012 21:10:26 +0000 (13:10 -0800)
committerIan Romanick <ian.d.romanick@intel.com>
Tue, 24 Jan 2012 23:39:47 +0000 (15:39 -0800)
commit7861ccbe238033614d9c96caab24b5bbfce8fe06
treee26bd3682f679e77b82254cbe22f0f0be3321c52
parentbffefc3d27c74dc25987405c6f94d7bc7f67acf6
glsl: Fix leak of LinkedTransformFeedback.Varyings.

I copy-and-pasted the thing I was allocating for as the context, so
the first time it would be NULL (root of a ralloc context) and they'd
chain off each other from then on.

NOTE: This is a candidate for the 8.0 branch.
(cherry picked from commit 5a0f395bcf70e524492e766a07cf0b816b42a20d)
src/glsl/linker.cpp