Commit 6b7249d7 authored by Boudewijn Rempt's avatar Boudewijn Rempt

Fix warning, use free instead of delete on void *

parent 3cfad16e
......@@ -1847,7 +1847,7 @@ recompute_UBspline_3d_z (UBspline_3d_z* spline, complex_double *data)
void
destroy_UBspline (Bspline *spline)
{
delete[] spline->coefs;
free(spline->coefs);
delete spline;
}
......
......@@ -1480,6 +1480,6 @@ set_multi_UBspline_3d_z (multi_UBspline_3d_z* spline, int num, complex_double *d
void
destroy_multi_UBspline (Bspline *spline)
{
delete[] spline->coefs;
free(spline->coefs);
delete spline;
}
......@@ -1079,7 +1079,7 @@ create_NUBspline_3d_z (NUgrid* x_grid, NUgrid* y_grid, NUgrid* z_grid,
void
destroy_NUBspline(Bspline *spline)
{
delete[] (spline->coefs);
free(spline->coefs);
switch (spline->sp_code) {
case NU1D:
destroy_NUBasis (((NUBspline_1d*)spline)->x_basis);
......
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