i965/vs: Fix memory leak of ralloc context for the visitor.
authorEric Anholt <eric@anholt.net>
Tue, 16 Aug 2011 03:43:42 +0000 (20:43 -0700)
committerEric Anholt <eric@anholt.net>
Tue, 16 Aug 2011 20:04:43 +0000 (13:04 -0700)
src/mesa/drivers/dri/i965/brw_vec4_visitor.cpp

index 3ae89dfbc45a39ef4225901f42d3f4b42c3dbc6e..185a01e05f9965f38c99850494c516c53f5be203 100644 (file)
@@ -2104,6 +2104,7 @@ vec4_visitor::vec4_visitor(struct brw_vs_compile *c,
 
 vec4_visitor::~vec4_visitor()
 {
+   ralloc_free(this->mem_ctx);
    hash_table_dtor(this->variable_ht);
 }