Commit ea055e19 authored by Marcin Ślusarz's avatar Marcin Ślusarz

glsl: fix deref_hash memory leak in constant_expression_value

Reviewed-by: Kenneth Graunke's avatarKenneth Graunke <>
parent ca9977d5
......@@ -1322,8 +1322,11 @@ ir_function_signature::constant_expression_value(exec_list *actual_parameters, s
foreach_list(n, actual_parameters) {
ir_constant *constant = ((ir_rvalue *) n)->constant_expression_value(variable_context);
if (constant == NULL)
return NULL;
if (constant == NULL) {
return NULL;
ir_variable *var = (ir_variable *)parameter_info;
hash_table_insert(deref_hash, constant, var);
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment