Explorar el Código

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.
tags/mesa-7.9-rc1
Ian Romanick hace 15 años
padre
commit
2f8b0435b0
Se han modificado 1 ficheros con 1 adiciones y 1 borrados
  1. 1
    1
      ir_function_inlining.cpp

+ 1
- 1
ir_function_inlining.cpp Ver fichero

@@ -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);

Cargando…
Cancelar
Guardar