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:
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user