diff --git a/panda/src/grutil/heightfieldTesselator.cxx b/panda/src/grutil/heightfieldTesselator.cxx index f84bc0adb2..69da06a643 100644 --- a/panda/src/grutil/heightfieldTesselator.cxx +++ b/panda/src/grutil/heightfieldTesselator.cxx @@ -186,9 +186,9 @@ generate() { generate_square(root,scale,x*size,y*size,true); } } - delete _vertex_index; - delete _dirty_vertices; - delete _triangle_totals; + delete[] _vertex_index; + delete[] _dirty_vertices; + delete[] _triangle_totals; _vertex_index =0; _dirty_vertices =0; _triangle_totals =0;