From: Eric Anholt Date: Tue, 16 Aug 2011 03:43:42 +0000 (-0700) Subject: i965/vs: Fix memory leak of ralloc context for the visitor. X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=e9a86ae3370948acb1276e80fbbc421d7025db36;p=mesa.git i965/vs: Fix memory leak of ralloc context for the visitor. --- diff --git a/src/mesa/drivers/dri/i965/brw_vec4_visitor.cpp b/src/mesa/drivers/dri/i965/brw_vec4_visitor.cpp index 3ae89dfbc45..185a01e05f9 100644 --- a/src/mesa/drivers/dri/i965/brw_vec4_visitor.cpp +++ b/src/mesa/drivers/dri/i965/brw_vec4_visitor.cpp @@ -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); }