summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--src/glsl/ir.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/glsl/ir.cpp b/src/glsl/ir.cpp
index 6dccbd806e..c75d560c48 100644
--- a/src/glsl/ir.cpp
+++ b/src/glsl/ir.cpp
@@ -911,7 +911,7 @@ steal_memory(ir_instruction *ir, void *new_ctx)
ir_variable *var = ir->as_variable();
ir_constant *constant = ir->as_constant();
if (var != NULL && var->constant_value != NULL)
- talloc_steal(ir, var->constant_value);
+ steal_memory(var->constant_value, ir);
/* The components of aggregate constants are not visited by the normal
* visitor, so steal their values by hand.