glsl: Rely on talloc_autofree_context() instead of trying to free on our own.
authorEric Anholt <eric@anholt.net>
Tue, 24 Aug 2010 00:16:25 +0000 (17:16 -0700)
committerEric Anholt <eric@anholt.net>
Tue, 24 Aug 2010 00:25:38 +0000 (17:25 -0700)
commit8dd619ba6825e673a357336b69c96accaa96a7ef
treedf9f97e89cc5d4a1a80702b2025cf0c5538763f3
parente0564d56b1d3bc339b7a9cd232df4b042a93aab2
glsl: Rely on talloc_autofree_context() instead of trying to free on our own.

Because the static types talloc their names at dlopen time,
talloc_freeing the types at DRI driver screen teardown means that if
the screen gets brought back up again, the names will point at freed
memory.  talloc_autofree_context() exists to do just what we want
here: Free memory referenced across the program's lifetime so that we
avoid noise in memory leak checkers.

Fixes: bug #29722 (assertion failure in unigine).
src/glsl/glsl_types.cpp