summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBrian <brian@nostromo.localnet.net>2007-03-24 16:26:51 -0600
committerBrian <brian@nostromo.localnet.net>2007-03-24 16:26:51 -0600
commitcfdd07d7d394a2a595a545c0ef81d00dd6156742 (patch)
tree9841f20dc28b895c563e67497dacc19e73160300
parent1968444bed931eeafdbe948a30bb871bfcf11b42 (diff)
fix mem leak
-rw-r--r--src/mesa/shader/slang/slang_compile_variable.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/mesa/shader/slang/slang_compile_variable.c b/src/mesa/shader/slang/slang_compile_variable.c
index ae37aed514..e099ecb067 100644
--- a/src/mesa/shader/slang/slang_compile_variable.c
+++ b/src/mesa/shader/slang/slang_compile_variable.c
@@ -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);
+ }
}