diff options
author | Carl Worth <[email protected]> | 2010-06-23 17:12:11 -0700 |
---|---|---|
committer | Carl Worth <[email protected]> | 2010-06-23 18:15:28 -0700 |
commit | 8f52c9b5fcbc73ed12b23253caa44c28fd4452e2 (patch) | |
tree | 9095f97434e32130abced75cadf4c10e8389a6be /ast_to_hir.cpp | |
parent | 015b3a5115df9a53b73d4b99fed86cf245c87aca (diff) |
ast_node: Add new talloc-based new()
And use the talloc-based new for all of the ast objects created by the
parser. This closes a lot of memory leaks, and will allow us to use
these ast objects as talloc parents in the future, (for things like
exec_nodes, etc.).
This closes 164 leaks in the glsl-orangebook-ch06-bump.frag test:
total heap usage: 55,623 allocs, 14,553 frees
(was 14,389 frees)
Diffstat (limited to 'ast_to_hir.cpp')
0 files changed, 0 insertions, 0 deletions