mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2025-12-25 00:00:11 +01:00
Use array delete operator to delete an array
This was detected by valgrind. I think GCC still does the right thing, but the C++ spec allows the compiler to do something stupid... like crash or only delete the first entry in the array.
This commit is contained in:
parent
cfb3536f10
commit
2f8b0435b0
1 changed files with 1 additions and 1 deletions
|
|
@ -411,7 +411,7 @@ ir_call::generate_inline(ir_instruction *next_ir)
|
|||
param_iter.next();
|
||||
}
|
||||
|
||||
delete(parameters);
|
||||
delete [] parameters;
|
||||
|
||||
if (retval)
|
||||
return new ir_dereference_variable(retval);
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue