summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--src/compiler/glsl/builtin_functions.cpp2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/compiler/glsl/builtin_functions.cpp b/src/compiler/glsl/builtin_functions.cpp
index 0382ae1c460..2e7503629bc 100644
--- a/src/compiler/glsl/builtin_functions.cpp
+++ b/src/compiler/glsl/builtin_functions.cpp
@@ -85,6 +85,7 @@
#include "glsl_parser_extras.h"
#include "program/prog_instruction.h"
#include <math.h>
+#include <malloc.h>
#include "builtin_functions.h"
#include "util/hash_table.h"
@@ -1455,6 +1456,7 @@ builtin_builder::release()
shader = NULL;
glsl_type_singleton_decref();
+ malloc_trim(0);
}
void