fix mem leak
authorBrian <brian@nostromo.localnet.net>
Sat, 24 Mar 2007 22:26:51 +0000 (16:26 -0600)
committerBrian <brian@nostromo.localnet.net>
Sat, 24 Mar 2007 22:26:51 +0000 (16:26 -0600)
src/mesa/shader/slang/slang_compile_variable.c

index ae37aed514537df1c0591e6fe8f7e351ee6988d0..e099ecb067e27957ab85dc905c573bbc3f8a729f 100644 (file)
@@ -272,6 +272,9 @@ slang_variable_destruct(slang_variable * var)
       slang_operation_destruct(var->initializer);
       slang_alloc_free(var->initializer);
    }
+   if (var->aux) {
+      _mesa_free(var->aux);
+   }
 }