summaryrefslogtreecommitdiffstats
path: root/src/glsl
diff options
context:
space:
mode:
authorEric Anholt <[email protected]>2010-11-08 14:38:18 -0800
committerEric Anholt <[email protected]>2010-11-11 15:12:37 -0800
commit6929cdd14bf90d5b145039265f2d43ded52020a3 (patch)
tree7239befcc58b994925d3db55329cf2670c5dfed6 /src/glsl
parent78587ea0122d34e13c078d095aa5b730ce24bb73 (diff)
glsl: Free the loop state context when we free the loop state.
Since this was talloced off of NULL instead of the compile state, it was a real leak over the course of the program. Noticed with valgrind --leak-check=full --show-reachable=yes. We should really change these passes to generally get the compile context as an argument so simple mistakes like this stop mattering.
Diffstat (limited to 'src/glsl')
-rw-r--r--src/glsl/loop_analysis.cpp1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/glsl/loop_analysis.cpp b/src/glsl/loop_analysis.cpp
index 91e34da0ee4..ff7adf00a21 100644
--- a/src/glsl/loop_analysis.cpp
+++ b/src/glsl/loop_analysis.cpp
@@ -44,6 +44,7 @@ loop_state::loop_state()
loop_state::~loop_state()
{
hash_table_dtor(this->ht);
+ talloc_free(this->mem_ctx);
}