glsl: Delete builtin_builder::shader when destroying built-ins.
authorKenneth Graunke <kenneth@whitecape.org>
Tue, 17 Sep 2013 06:35:41 +0000 (23:35 -0700)
committerKenneth Graunke <kenneth@whitecape.org>
Thu, 19 Sep 2013 17:52:58 +0000 (10:52 -0700)
commitd2d90d66d81d5f147b03628e1913bf7f9d2a0563
tree126b0302bc19fbe3b1f819aaeb2dc4dcb4f7dcd7
parent9f64bb2312dece0bba02bcbaf0c48d27d2f69daf
glsl: Delete builtin_builder::shader when destroying built-ins.

I would use _mesa_delete_shader, but it's declared static, and we don't
really need any of the stuff in it anyway.

This fixes a memory leak caught by Valgrind.

Signed-off-by: Kenneth Graunke <kenneth@whitecape.org>
Reviewed-by: Eric Anholt <eric@anholt.net>
src/glsl/builtin_functions.cpp