From cfdd07d7d394a2a595a545c0ef81d00dd6156742 Mon Sep 17 00:00:00 2001 From: Brian Date: Sat, 24 Mar 2007 16:26:51 -0600 Subject: [PATCH] fix mem leak --- src/mesa/shader/slang/slang_compile_variable.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/mesa/shader/slang/slang_compile_variable.c b/src/mesa/shader/slang/slang_compile_variable.c index ae37aed5145..e099ecb067e 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); + } } -- 2.30.2