summaryrefslogtreecommitdiff
path: root/hir_field_selection.cpp
diff options
context:
space:
mode:
authorCarl Worth <cworth@cworth.org>2010-06-23 18:25:04 -0700
committerCarl Worth <cworth@cworth.org>2010-06-23 19:00:42 -0700
commite01193af325cbdde51b3219c85c58f19d5a87f1b (patch)
tree8d73fe130ac1b21361f260feb13e0beeae6348ae /hir_field_selection.cpp
parent522de3f5ecbfe3f84e92ac03d1438a44eb1beae7 (diff)
Close memory leak in ir_call::get_error_instruction.
By propagating a 'ctx' parameter through these calls. This fix happens to have no impact on glsl-orangebook-ch06-bump.frag, (since it doesn't trigger any errors).
Diffstat (limited to 'hir_field_selection.cpp')
-rw-r--r--hir_field_selection.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/hir_field_selection.cpp b/hir_field_selection.cpp
index 6da14925b9..e2efff60d3 100644
--- a/hir_field_selection.cpp
+++ b/hir_field_selection.cpp
@@ -77,5 +77,5 @@ _mesa_ast_field_selection_to_hir(const ast_expression *expr,
expr->primary_expression.identifier);
}
- return result ? result : ir_call::get_error_instruction();
+ return result ? result : ir_call::get_error_instruction(ctx);
}