glsl: destroy function and subroutine hash tables
Just like other type hash tables are destroyed in _mesa_glsl_release_types(), also destroy the ones for function and subroutine types. Signed-off-by: Grazvydas Ignotas <notasas@gmail.com> Reviewed-by: Timothy Arceri <tarceri@itsqueeze.com>
This commit is contained in:

committed by
Timothy Arceri

parent
d71ca40a18
commit
1f743a0edf
@@ -412,6 +412,16 @@ _mesa_glsl_release_types(void)
|
||||
glsl_type::interface_types = NULL;
|
||||
}
|
||||
|
||||
if (glsl_type::function_types != NULL) {
|
||||
_mesa_hash_table_destroy(glsl_type::function_types, NULL);
|
||||
glsl_type::function_types = NULL;
|
||||
}
|
||||
|
||||
if (glsl_type::subroutine_types != NULL) {
|
||||
_mesa_hash_table_destroy(glsl_type::subroutine_types, NULL);
|
||||
glsl_type::subroutine_types = NULL;
|
||||
}
|
||||
|
||||
ralloc_free(glsl_type::mem_ctx);
|
||||
glsl_type::mem_ctx = NULL;
|
||||
}
|
||||
|
Reference in New Issue
Block a user