From 938c86eee69d3e07e25933fa078c44ee59074bb6 Mon Sep 17 00:00:00 2001 From: gogg Date: Thu, 18 Mar 2010 20:46:42 +0000 Subject: [PATCH] (Correctness) Delete internal arrays as arrays, not scalar. --- panda/src/grutil/heightfieldTesselator.cxx | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) 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;