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:
parent
49c22c2155
commit
39dbf47bfe
|
@ -86,6 +86,9 @@ set_uniform_initializer::TearDown()
|
||||||
ralloc_free(this->mem_ctx);
|
ralloc_free(this->mem_ctx);
|
||||||
this->mem_ctx = NULL;
|
this->mem_ctx = NULL;
|
||||||
|
|
||||||
|
if (this->prog->UniformHash)
|
||||||
|
string_to_uint_map_dtor(this->prog->UniformHash);
|
||||||
|
|
||||||
ralloc_free(this->prog);
|
ralloc_free(this->prog);
|
||||||
this->prog = NULL;
|
this->prog = NULL;
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue