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:
@@ -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;
|
||||
|
||||
|
Reference in New Issue
Block a user