glsl/uniform_initializer_tests: Fix memory leak

Needed for meson test with asan enabled.

Reviewed-by: Adam Jackson <ajax@redhat.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/7936>
This commit is contained in:
Eric Anholt 2020-12-04 13:19:32 -08:00 committed by Marge Bot
parent 49c22c2155
commit 39dbf47bfe
1 changed files with 3 additions and 0 deletions

View File

@ -86,6 +86,9 @@ set_uniform_initializer::TearDown()
ralloc_free(this->mem_ctx);
this->mem_ctx = NULL;
if (this->prog->UniformHash)
string_to_uint_map_dtor(this->prog->UniformHash);
ralloc_free(this->prog);
this->prog = NULL;