i965/vs: Fix leak of an empty hash_table structure per compile.
authorEric Anholt <eric@anholt.net>
Thu, 12 Jan 2012 20:59:15 +0000 (12:59 -0800)
committerEric Anholt <eric@anholt.net>
Wed, 18 Jan 2012 17:59:12 +0000 (09:59 -0800)
This statement got duplicated above, probably in a rebase resolution,
so we never freed the extra one.

NOTE: This is a candidate for the 8.0 branch.

src/mesa/drivers/dri/i965/brw_vec4_visitor.cpp

index 5df2470dc1bf675b2b09772072364762ce0fa2ca..ecabcc81e9e5125d36224150505ccbe2bd5dcc10 100644 (file)
@@ -2601,10 +2601,6 @@ vec4_visitor::vec4_visitor(struct brw_vs_compile *c,
    this->live_intervals_valid = false;
 
    this->uniforms = 0;
-
-   this->variable_ht = hash_table_ctor(0,
-                                      hash_table_pointer_hash,
-                                      hash_table_pointer_compare);
 }
 
 vec4_visitor::~vec4_visitor()