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.
This commit is contained in:
Eric Anholt
2010-11-08 14:38:18 -08:00
parent 78587ea012
commit 6929cdd14b

View File

@@ -44,6 +44,7 @@ loop_state::loop_state()
loop_state::~loop_state()
{
hash_table_dtor(this->ht);
talloc_free(this->mem_ctx);
}