glsl: free interface_types
authorTimothy Arceri <t_arceri@yahoo.com.au>
Mon, 13 Jul 2015 21:41:26 +0000 (07:41 +1000)
committerTimothy Arceri <t_arceri@yahoo.com.au>
Mon, 13 Jul 2015 21:48:34 +0000 (07:48 +1000)
Reviewed-by: Iago Toral Quiroga <itoral@igalia.com>
src/glsl/glsl_types.cpp

index 4b344f1eb4a59a21cd44239cc9fd77204c81a2ec..aaf7c7c48d6e37b9c7bb2c7afede4ae32da8db86 100644 (file)
@@ -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;
+   }
 }