Close memory leaks from generate_constructor_intro
authorCarl Worth <cworth@cworth.org>
Thu, 24 Jun 2010 01:19:46 +0000 (18:19 -0700)
committerCarl Worth <cworth@cworth.org>
Thu, 24 Jun 2010 02:00:42 +0000 (19:00 -0700)
commit522de3f5ecbfe3f84e92ac03d1438a44eb1beae7
treecbb1e935a7c9c3845fdca93da3bd8a9075dcc71d
parent1660a2954797e056caba319c5d6c70b0d4be22fe
Close memory leaks from generate_constructor_intro

By simply propagating a 'ctx' parameter through these function
calls. (We do this because these function are otherwise only receiving
an exec_list, which is not a valid talloc context.)

This closes 1611 leaks in the glsl-orangebook-ch06-bump.frag test:

total heap usage: 55,623 allocs, 44,283 frees
(was 42,672 frees)
glsl_types.cpp