From: Timothy Arceri Date: Mon, 13 Jul 2015 21:41:26 +0000 (+1000) Subject: glsl: free interface_types X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=75df8f00192415eb4ad378708ff3745390931b4e;p=mesa.git glsl: free interface_types Reviewed-by: Iago Toral Quiroga --- diff --git a/src/glsl/glsl_types.cpp b/src/glsl/glsl_types.cpp index 4b344f1eb4a..aaf7c7c48d6 100644 --- a/src/glsl/glsl_types.cpp +++ b/src/glsl/glsl_types.cpp @@ -337,6 +337,11 @@ _mesa_glsl_release_types(void) _mesa_hash_table_destroy(glsl_type::record_types, NULL); glsl_type::record_types = NULL; } + + if (glsl_type::interface_types != NULL) { + _mesa_hash_table_destroy(glsl_type::interface_types, NULL); + glsl_type::interface_types = NULL; + } }